Skip to content

Instantly share code, notes, and snippets.

View georgebashi's full-sized avatar

George Bashi georgebashi

View GitHub Profile
@georgebashi
georgebashi / gist:281004
Created January 19, 2010 15:35
Valentines
import toxi.math.noise.*;
import toxi.math.waves.*;
import toxi.geom.*;
import toxi.math.*;
import toxi.math.conversion.*;
import toxi.geom.util.*;
import toxi.util.datatypes.*;
import toxi.color.*;
import toxi.color.theory.*;
@georgebashi
georgebashi / gist:299231
Created February 9, 2010 14:20
Processing Fluid Motion
import java.util.Arrays;
import processing.core.PApplet;
import processing.core.PConstants;
public class Fluid extends PApplet {
class Physics extends Thread {
@Override
public void run() {
while (true) {
import processing.phone.*;
int BOX_HEIGHT = 10;
int N_COLOURS = 4;
int N_SIZES = 5;
color[] colours;
int[] sizes;
int i;
int j;
Phone p;
import toxi.math.noise.*;
import toxi.math.waves.*;
import toxi.geom.*;
import toxi.math.*;
import toxi.math.conversion.*;
import toxi.geom.util.*;
import toxi.util.datatypes.*;
import toxi.color.*;
import toxi.color.theory.*;
import pturtle.*;
Turtle t = new Turtle(this);
t.forward(10);
t.right(90);
t.forward(10);
t.right(90);
t.forward(10);
t.right(90);
t.forward(10);
t.right(90);
import pturtle.*;
Turtle t = new Turtle(this);
for (int i = 0; i < 4; i++) {
t.forward(10);
t.right(90);
}
cd /opt/nginx/conf
git init .
git add .
git commit
git remote add origin git@rly.gd:nginx-conf.git
git push origin master
git clone git@rly.gd:nginx-conf.git
#!/bin/sh
rm -rf /opt/nginx/conf/* /opt/nginx/conf/.git
git clone --depth=1 /home/git/repositories/nginx-conf.git /opt/nginx/conf