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
| 24787 => int monomeIn; | |
| 17102 => int monomeOut; | |
| "/example" => string monomePrefix; | |
| "127.0.0.1" => string monomeHost; | |
| OscRecv recv; | |
| monomeIn => recv.port; | |
| recv.listen(); | |
| fun float[][] toneGrid(int width, int height, int columnStep, int rowStep, float baseFreq, float octaveSteps) { |
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
| 110.0 => float rootFreq; | |
| 20 => float toneSteps; | |
| 10::ms => dur genStep; | |
| 24787 => int monomeIn; | |
| 17102 => int monomeOut; | |
| "/example" => string monomePrefix; | |
| "127.0.0.1" => string monomeHost; | |
| fun float[][] toneGrid(int width, int height, int columnStep, int rowStep, float baseFreq, float octaveSteps) { |
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 gifAnimation.*; | |
| GifMaker gifExport; | |
| int frames = 0; | |
| int totalFrames = 120; | |
| public void setup() { | |
| smooth(); | |
| size(400, 400); |
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 gifAnimation.*; | |
| GifMaker gifExport; | |
| int frames = 0; | |
| int totalFrames = 180; | |
| void setup() { | |
| smooth(); | |
| size(900, 300, P3D); | |
| ortho(); |
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 gifAnimation.*; | |
| GifMaker gifExport; | |
| int loopFrames = 60; | |
| PVector maskOrigin; | |
| Float maskWidth = 250.0; | |
| float orbitWidth = 100.0; | |
| void setup() { | |
| gifExport = new GifMaker(this, "export.gif", 30); |
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
| jorelli@jorelli[0] /usr/local/go: tree bin | |
| bin | |
| |-- go | |
| |-- godoc | |
| `-- gofmt | |
| 0 directories, 3 files | |
| jorelli@jorelli[0] /usr/local/go: ls src/github.com | |
| ls: cannot access src/github.com: No such file or directory | |
| jorelli@jorelli[0] /usr/local/go: go get github.com/jordanorelli/skeam |
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
| var picker_id = this.id + 'start-date'; | |
| this.start_date_picker = this.date_picker_container.append('input'); | |
| this.start_date_picker.attr('type', 'text'); | |
| this.start_date_picker.attr('id', picker_id); | |
| this.start_date_picker = $('#'+picker_id).datepicker(); | |
| // this DOES NOT work: | |
| this.start_date_picker.setDate(this.response.start_date); |
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
| // the method definition Less is any method on type T such that the signature of the method is `(T) bool`. | |
| type Sortable interface { | |
| Less(kin) bool | |
| } | |
| // MySortable *does* satisfy Sortable | |
| type MySortable struct { | |
| // ... | |
| } |
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
| <?php | |
| class Foo { | |
| const a = 1; | |
| const b = 4; | |
| const c = 1 | 4; | |
| } | |
| echo "a: " . Foo::a . "\n"; | |
| echo "b: " . Foo::b . "\n"; |
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
| (define ack | |
| (lambda (m n) | |
| (if (= m 0) | |
| (+ n 1) | |
| (if (and (> m 0) (= n 0)) | |
| (ack (- m 1) 1) | |
| (if (and (> m 0) (> n 0)) | |
| (ack (- m 1) (ack m (- n 1)))))))) |