Skip to content

Instantly share code, notes, and snippets.

@clouddueling
clouddueling / upload.js
Created March 3, 2013 07:34
resumable.js example
var uploader = (function(){
var r = Resumable({
target: '/upload/stream',
chunkSize: 1*1024*1024,
query: {
serie_id: {{ $serie->id }}
}
}),
@atduskgreg
atduskgreg / video_scrub.pde
Created October 31, 2011 21:12
scrubbing a video file based on mouse movement
/* Scrub a video based on mouseX. */
import processing.video.*;
Movie myMovie;
void setup() {
size(640, 480, P2D);
background(0);
// Load the video and pause it
myMovie = new Movie(this, "station.mov");
myMovie.pause();
@leebyron
leebyron / latlong.pde
Created May 29, 2011 03:50
conversions from Lat/long to 2d map projections - for Processing
/**
* A collection of functions responsible for performing translations between
* longitude/latitude coordinates and points on a 1/1 square
* (which you could then map to pixelspace)
*
* @author leebyron
*/
/**
* lon double x coordinate in radians [-PI,PI)
@mklabs
mklabs / github-flavored-markdown.md
Created March 1, 2011 09:47
GitHub Flavored Markdown #test #github #markdown

GitHub Flavored Markdown

View the source of this content.

Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:

Roses are red Violets are blue