Skip to content

Instantly share code, notes, and snippets.

Cameron Browning camb416

Block or report user

Report or block camb416

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@camb416
camb416 / sliceProgressively.sh
Created Feb 19, 2016
One week series. Slicing images from top to bottom over time.
View sliceProgressively.sh
#!/bin/bash
# One week series. Slicing images from top to bottom over time.
# http://cameronbrowning.com/content/one-week-series/
# Originally adapted from earlier work at:
# http://cameronbrowning.com/content/creating-slit-scan-images-from-quicktime-movies-with-ffmpeg-on-mac-os-x/
# Step 1: loop through 10,078 images
for i in `seq -f "%05g" 1 10078`;
do
# subtract 1 from the counter for the y offset
@camb416
camb416 / processing_ide.md
Last active Feb 17, 2016
Instructions on how to create a new processing project in IntelliJ IDEA Community 15
View processing_ide.md

Processing 3.0 in IntelliJ IDEA 15

  • Create new project
  • Java
  • Next
  • Next
  • Finish
  • File > Project Structure
  • Libraries > +
  • /Applications/Processing.app/Contents/Java/core.jar
  • OK
View simpleswarmer2.pde
/**
* Simple Swarmer 2
*
*/
int numAttractors = 256;
int numMasses = 8192*2;
float maxSpeed = 4.0f;
float maxAccel = 1.0f;
View sketch_160202b
/**
* Simple Swarmer
*
*/
int numAttractors = 256;
int numMasses = 4096;
Attractor[] a = new Attractor[numAttractors];
@camb416
camb416 / grabAllTheCameras.sh
Created Jan 29, 2016
Grab all the NYC DOT Traffic camera images and make a contact sheet with imagemagick
View grabAllTheCameras.sh
#!/bin/bash
wget http://207.251.86.238/cctv261.jpg
wget http://207.251.86.238/cctv254.jpg
wget http://207.251.86.238/cctv490.jpg
wget http://207.251.86.238/cctv263.jpg
wget http://207.251.86.238/cctv644.jpg
wget http://207.251.86.238/cctv696.jpg
wget http://207.251.86.238/cctv722.jpg
wget http://207.251.86.238/cctv200.jpg
wget http://207.251.86.238/cctv31.jpg
@camb416
camb416 / traffic-cameras.json
Last active Jun 23, 2016 — forked from kuanb/traffic-cameras.json
All traffic camera locations in NYC
View traffic-cameras.json
[{
"lat": "40.79142677512476",
"lng": "-73.93807411193848",
"name": "1 Ave @ 110 St",
"camera": "http://207.251.86.238/cctv261.jpg"
}, {
"lat": "40.800426144169315",
"lng": "-73.93155097961426",
"name": "1 Ave @ 124 St",
"camera": "http://207.251.86.238/cctv254.jpg"
View simplePointPattern.pde
int mod;
void setup(){
mod = 1;
size(600,600);
}
View copyToFolder.sh
#!/bin/bash
cp 3d/3DPrimitivesExample.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/3DPrimitivesExample/screenshot.png
cp 3d/advanced3dExample.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/advanced3dExample/screenshot.png
cp 3d/cameraLensOffsetExample.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/cameraLensOffsetExample/screenshot.png
cp 3d/cameraParentingExample.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/cameraParentingExample/screenshot.png
cp 3d/cameraRibbonExample.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/cameraRibbonExample/screenshot.png
cp 3d/easyCamExample.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/easyCamExample/screenshot.png
cp 3d/meshFromCamera.png /Users/cbrowning/Documents/Development/of_v0.9.0_osx_release/examples/3d/meshFromCamera/screenshot.png
cp 3d/modelNoiseExample.png /Users/cbrowning/Documents/D
View Ribbons_v1.pde
float x;
float y;
float z;
float outsideRadius = 150;
float insideRadius = 100;
class Point{
float x,y,z;
Point(float _x, float _y, float _z){
x = _x;
@camb416
camb416 / turtle2.pde
Created Oct 23, 2015
Turtle drawing program with branches
View turtle2.pde
class Point{
float x,y;
Point(float _x, float _y){
x = _x;
y = _y;
}
};
class Turtle{
Point p;
You can’t perform that action at this time.