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
/* | |
Learn to code with Kelis' Milkshake | |
http://en.wikipedia.org/wiki/Milkshake_(song) | |
Created by Brendan Dawes brendandawes.com | |
*/ | |
// "my milkshake brings all the boys to the yard" | |
var milkShake; | |
var boysToTheYard = 0; |
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
/* | |
Learn to code with Kelis' Milkshake | |
http://en.wikipedia.org/wiki/Milkshake_(song) | |
Created by Brendan Dawes brendandawes.com | |
*/ | |
/ "I could teach you, but I'd have to charge" | |
var teachYou = true; |
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
pencilRadius = 3.75; | |
wallThickness = 2.5; | |
pencilWall = pencilRadius + wallThickness; | |
height = 38; | |
length = 35; | |
difference() { | |
union() { | |
cylinder(height,pencilWall,pencilWall,true); | |
translate([-3.75,-length/2,0]) |
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
// Happiness Machine Arduino / Nanode Code | |
// See www.brendandawes.com | |
#include <EtherCard.h> | |
#include <NewSoftSerial.h> | |
NewSoftSerial Thermal(2, 3); //Soft RX from printer on D2, soft TX out to printer on D3 | |
#define FALSE 0 | |
#define TRUE 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
<?php | |
function download($url){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$url); | |
curl_setopt($ch, CURLOPT_FAILONERROR,1); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 15); | |
$retValue = curl_exec($ch); |
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
/* | |
Toy Rocket Construction Kit by Brendan Dawes | |
brendandawes.com | |
Nose cone isn't great but it suffices for now! | |
*/ | |
rocketRadius = 20; | |
connectorHeight = 5; |
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
// Ben Folds Five Poster - Cityscape Generator by Brendan Dawes | |
// http://brendandawes.com/projects/benfoldsfive/ | |
// Requires library from http://toxiclibs.org | |
import toxi.color.*; | |
import toxi.util.datatypes.*; | |
import processing.pdf.*; | |
final color BACKGROUND_COLOR = color(240); |
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 processing.pdf.*; | |
/* | |
James Bond Kills by Brendan Dawes | |
http://brendandawes.com/projects/jamesbondkills/ | |
CSV import method by che-wei wang. | |
Requires CSV export from data provided by Guardian Data Store. | |
https://docs.google.com/spreadsheet/ccc?key=0AonYZs4MzlZbdEgyUE9aQktJR0ZEWFlURGlYODNISHc#gid=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
/* | |
Simple video scrubbing example using Leap Motion | |
Made for Processing – requires LeapMotionP5 library | |
An open hand pauses the video and then allows you to scrub the video left and right. | |
Closing your hand plays the video. | |
http://brendandawes.com/blog/leapmotion | |
*/ |
OlderNewer