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 themidibus.*; | |
MidiBus myBus; | |
int y = 0; | |
int vel = 0; | |
void setup() { | |
size(1024, 768); | |
background(0); | |
myBus = new MidiBus(this, 0, -1); |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
) | |
type ProductionSet map[rune]string | |
type Alphabet map[rune]bool |
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
void setup() { | |
size(500, 500); | |
smooth(); | |
background(255); | |
stroke(0); | |
strokeWeight(1); | |
HashMap productions = new HashMap(); | |
productions.put('F', "F-F+F+FF-F-F+F"); | |
String axiom = "F-F-F-F"; |
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.awt.AWTException; | |
import java.awt.Robot; | |
Robot robot; | |
float b, x; | |
float tspeed; | |
PVector middle; | |
boolean left, right, backward, forward; | |
boolean SOOPASPEED; | |
int fullspeed = 6; |
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.awt.AWTException; | |
import java.awt.Robot; | |
Robot robot; | |
float turn; | |
boolean SOOPASPEED; | |
int fullspeed = 6; | |
int regspeed = 1; | |
PVector pos; | |
PVector velocity = new PVector(0, 0); // initially, you're not moving. |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
type connection struct { | |
name 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
package main | |
import ( | |
"bufio" | |
"errors" | |
"fmt" | |
"os" | |
"strconv" | |
"strings" | |
) |
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
package main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"html/template" | |
"log" | |
"math/rand" | |
"net/http" | |
"runtime" |
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
diff --git a/go/src/hello/hello.go b/go/src/hello/hello.go | |
index 5f54709..b843e19 100644 | |
--- a/go/src/hello/hello.go | |
+++ b/go/src/hello/hello.go | |
@@ -10,6 +10,7 @@ import ( | |
"runtime" | |
"sort" | |
"strconv" | |
+ "sync" |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" |