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 processing.serial.*; | |
| Serial myPort; // Create object from Serial class | |
| int linefeed = 10; | |
| /** | |
| * Mixture Grid | |
| * modified from an example by Simon Greenwold. |
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
| x1 = sin(TWO_PI/3 * 0); | |
| y1 = cos(TWO_PI/3 * 0); | |
| x2 = sin(TWO_PI/3 * 1); | |
| y2 = cos(TWO_PI/3 * 1); | |
| x3 = sin(TWO_PI/3 * 2); | |
| y3 = cos(TWO_PI/3 * 2); | |
| scale(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
| float magic = 0; | |
| void setup() | |
| { | |
| size(400, 400); | |
| } | |
| void draw() |
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
| String palette_api = "http://www.colourlovers.com/api/palettes/random?format=json"; | |
| JSONObject palette_data; | |
| String[] hex_values; | |
| color colour; | |
| void setup() | |
| { |
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 led = 13; | |
| void setup() { | |
| Serial.begin(9600); // opens serial port, sets data rate to 9600 bps | |
| } | |
| void loop() { | |
| // send data only when you receive data: | |
| if (Serial.available() > 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
| #!/usr/bin/env python3 | |
| import struct | |
| import re | |
| class Wad(object): | |
| """Encapsulates the data found inside a WAD file""" | |
| def __init__(self, wadFile): | |
| """Each WAD files contains definitions for global attributes as well as map level attributes""" |
- http://opengameart.org/users/buch
- http://opengameart.org/users/sharm
- http://forums.tigsource.com/index.php?topic=8970.0
- http://opengameart.org/users/kenney
- http://opengameart.org/users/surt
- http://opengameart.org/content/lo-res-2d-platformer-graphics
- http://opengameart.org/users/jerom
- http://opengameart.org/content/8x8-tileset-by-soundlust
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
| " Highlight whitespace | |
| hi link ExtraWhitespace Error | |
| match ExtraWhitespace /\s\+$/ | |
| autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ | |
| autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
| autocmd InsertLeave * match ExtraWhitespace /\s\+$/ | |
| autocmd BufWinLeave * call clearmatches() | |
| " (Optional) Indentation/Whitespace Visibility | |
| " :dig to list characters available for use. |
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
| http://railscasts.com/episodes/57-create-model-through-text-field | |
| http://railscasts.com/episodes/73-complex-forms-part-1 | |
| http://railscasts.com/episodes/74-complex-forms-part-2 | |
| http://railscasts.com/episodes/75-complex-forms-part-3 | |
| http://railscasts.com/episodes/196-nested-model-form-part-1 | |
| http://railscasts.com/episodes/197-nested-model-form-part-2 | |
| http://railscasts.com/episodes/234-simple-form |