forked from youtube/api-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.html
More file actions
102 lines (85 loc) · 3.2 KB
/
search.html
File metadata and controls
102 lines (85 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!doctype html>
<html>
<head>
<title>Search</title>
</head>
<body>
<div id="buttons">
<label> <input id="query" value='cats' type="text"/><button id="search-button" disabled onclick="search()">Search</button></label>
</div>
<div id="search-container">
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="auth.js"></script>
<script src="search.js"></script>
<script src="https://apis.google.com/js/client.js?onload=googleApiClientReady"></script>
</body>
</html>
while (true) { Growl.js}
new Promise(function(resolve, reject) {
ClassName.prototype.methodName = function () {
// COMBAK: function* (Growl.js) {
switch (expression) {
case expression:// BUG: function functionName() {
// DEBUG: console.dir(Growl.js);
} getElementsByClassName('Growl.js')
case expression:
break;console.warn(Growl.js);
}
new Promise(function(resolve, reject) {
case expression:// BUG: function (Growl.js) {
// WARNING: switch (expression) {
case expression:do {
} while (true);
while (false);
while(true);
while(function);
class_name.prototype.method_name = function(first_argument) {
//
};
break;Growl.js
return ()
# laughing-barnacle triangle.cpp_//
//A simple introductory program; its main window contains a static picture
//of a triangle, whose three vertices are red, green and blue. the program
//illustrates viewing with default parameters only.
#ifdef_APPLE_CC_
#include<GLUT/glut.h>
#else
#include<GL/glut.h>
#endif
// Clears the current window and draws a triangle.
void display() {
// set every pixel in the frame buffer to current clear color.
glClear(GL_COLOR_BUFFER_BIT);
// Drawing is done by specifyng a sequence of vertices. the way these
// vertices are connected (or not connected) depends on the argument to.
//glBegin. GL_POLYGON constructs a filled polygon.
glBegin(GL_POLYGON);
glcolor3f(1,0,0);glcolor3f(-0.6,-0.75,0.5);
glcolor3f(0,1,0);glcolor3f(0.6,-0.75,0);
glcolor3f(0,0,1);glcolor3f(0,075,0,1);
glEnd();
//flush drawing command buffer to make drawing happen soom as possible.
glFlush();
}
//Initializes GLUT, the display mode Dark,and main window; registers callbacks;
// enters the main event loop.
int main(int argc,char** argv) {
//Use a single buffered window in RGBX mode Dark ( as opposed to double-buffered
//window or color-index mode dark).
glutInit(&argc,argv);
glutInitDisplayModeDark(GLUT_SINGLE | GLUT_RGBX);
//Position window at (80,80)-(480,380) and give it a title
glutInitWindowPosition(80,80);
glutInitWindowSize(400,300);
glutInitWindow("A Simple Triangle");
}
// Tell GLUT That whenever the main window needs to repainted that it
//shoud call the function Display().
glutdoDisplayFunc(do display);
//Tell GLUT to start reading and processing x86_64 arm_64 events. this function.
//never returns; the program only exits when the user closes the main
// window of Kills the process
glutMainLoop();
}