Skip to content

Instantly share code, notes, and snippets.

import processing.opengl.*;
PImage bg = new PImage();
PImage car = new PImage();
PImage[] grid = new PImage[4096];
PVector[] vgrid = new PVector[4096];
color[] cgrid = new color[4096];
float[] dgrid = new float[4096];
avclub.com
bricklink.com
calendar.google.com
gmail.com
ebay.co.uk
facebook.com
gmail.com
hem.spray.se/kendoka/
imgur.com
jonathanbrodsky.com
//import controlP5.*;
//ControlP5 cp5;
int[][] terrain;
int gridSize = 20;
int arraySize;
void setup() {
size(400, 400);
arraySize = (width/gridSize)+1;
terrain = new int[arraySize][arraySize];
@jonbro
jonbro / spritepacker.html
Created September 2, 2012 16:43
html sprite packer
<!DOCTYPE html>
<!--
instructions:
drag a set of images onto the canvas.
it will create a spritesheet from these images.
credits:
http://robertnyman.com/2011/03/10/using-html5-canvas-drag-and-drop-and-file-api-to-offer-the-cure/
http://www.blackpawn.com/texts/lightmaps/
http://www.html5rocks.com/en/tutorials/file/dndfiles/
Vec2 = class(function(vec,x,y)
vec.x = x
vec.y = y
end)
function Vec2:set(v)
self.x = v.x
self.y = v.y
return self
end
function Vec2:add(v)
AARON
ABACUS
ABATTOIR
ABBEY and SLOANE
ABBOTT
ABDOMEN
ABERCROMBIE
ABERCROMBIE
ABERRATION
ABIGAIL
@jonbro
jonbro / gist:6094281
Created July 27, 2013 08:47
colloquy xmpp crash log
7/27/13 9:38:26.211 AM Colloquy: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFSet removeObject:]: attempt to remove nil'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8acaff56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8e977d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8acafd8a +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff8acafd14 +[NSException raise:format:] + 116
4 CoreFoundation 0x00007fff8ac88c63 -[__NSCFSet removeObject:] + 147
5 Bouncer 0x0000000110004416 -[CQBouncerConnectionController _gotRawConnectionMessage:] + 359
6 Foundation 0x00007fff862acd0e __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
@jonbro
jonbro / gist:6100194
Created July 28, 2013 20:54
unity sprite grid rendering
using UnityEngine;
using System.Collections;
public class renderTiles : MonoBehaviour {
public Vector2 gridSize;
public Vector2 worldSize;
public float perlinScale, timeScale;
public int spriteRow;
public Color hiColor;
public Color lowColor;
@jonbro
jonbro / gist:6353378
Created August 27, 2013 13:16
simplex noise for unity (via tom nullpointer)
private int[] A = new int[3];
private float s, u, v, w;
private int i, j, k;
private float onethird = 0.333333333f;
private float onesixth = 0.166666667f;
private int[] T;
@jonbro
jonbro / gist:7352527
Created November 7, 2013 10:34
markov warmup
spend one fathom all the
difference to defend his skinny fingers; the
air was no vulgar curiosity; because the faces and of yours; he'll do not hear
me; the street, and we debated with her."
"That doesn't agree heartily between my darling's nostrils only
curled the bars upwards like poison!"