This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <GLUT/glut.h> | |
| #define KEY_ESC 27 | |
| #define WINDOW_POS_X 100 | |
| #define WINDOW_POS_Y 100 | |
| #define DEF_SCREEN_WIDTH 640 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float noise_step = 0.01; | |
| float noise_velocity = 0.0001; | |
| float noise_accel = 0.0001; | |
| void setup() { | |
| size(500, 500); | |
| } | |
| void keyPressed() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int quad_width = 25; | |
| int rd = 10; | |
| int[] colors = new int[180 / rd]; | |
| int color_idx = 0; | |
| void setup() { | |
| size(300, 300); | |
| frameRate(24); | |
| stroke(0, 100); | |
| colorMode(HSB); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float dnoise = 0; | |
| void setup() { | |
| size(300, 300); | |
| frameRate(30); | |
| } | |
| void draw() { | |
| background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float dnoise = 0; | |
| void setup() { | |
| size(300, 300); | |
| smooth(); | |
| frameRate(30); | |
| } | |
| void draw() { | |
| background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <time.h> | |
| #include <GLUT/glut.h> | |
| #define KEY_ESC 27 | |
| #define WINDOW_POS_X 100 | |
| #define WINDOW_POS_Y 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface HelloWorld : NSObject | |
| - (void) hello; | |
| @end | |
| @implementation HelloWorld | |
| - (void) hello { | |
| NSLog(@"hello world!"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.*; | |
| import java.util.*; | |
| public class SerializeTest | |
| { | |
| private static void serialize() | |
| { | |
| Map<String, List<String>> headers = new HashMap<String, List<String>>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Redirect output to stderr. | |
| exec 1>&2 | |
| for file in `git status --porcelain | grep '^[AM] ' | sed 's/^...//'` | |
| do | |
| ext=${file##*.} | |
| if [ $ext = "as" ]; then | |
| cat $file | tr '\r' '\n' > $file".tmp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF=8"> | |
| <title>My First Canvas Application</title> | |
| <script type="text/javascript"> | |
| window.addEventListener( | |
| "load", | |
| function(event) { | |
| function canvasSupport() { |