Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
🍯
𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮

Joseph Chiocchi yyolk

🍯
𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮
View GitHub Profile
@yyolk
yyolk / express_params.js
Created November 24, 2012 19:39
params + express
var express = require('express');
var params = require('express-params');
/**
* The app.
*/
var app = module.exports = express();
params.extend(app);
app.param('work', /^[0-9a-z-_]+$/);
@yyolk
yyolk / getOriginal.js
Created November 28, 2012 15:49
get original images flickr-node
var Flickr = require('flickr').Flickr;
var client = new Flickr('eae5ede55c1eda160c12f097f1abdf8f',
'acf9b9a1bd0e256b', {"oauth_token": '',
"oauth_token_secret": ''});
function getOriginal(url, cb){
var pattern = /http:\/\/www.flickr.com\/photos\/[a-z]*\/([0-9]*)$/;
var match = pattern.exec(url);
var sauce;
console.log(match[1]);
@yyolk
yyolk / get_nightlies.markdown
Last active October 13, 2015 11:08
openelec nightly for RPi
@yyolk
yyolk / todoist.css
Created December 2, 2012 01:02
todoist cleanup
/**
Title: Todoist bright sky theme
URL: http://stylebot.me/styles/1739
Author: http://stylebot.me/users/Arificial
**/
div.counter_color {
width: 3em;
}
//Joyful Light Drawer
//Derived from "Experiment in Abstract Shading" code.
//A lissajous curve modified to respond to mouseX, mouseY
float t = 0.2;
float spX, spY;
float stopVal;
int myFill;
@yyolk
yyolk / chills.pde
Created December 3, 2012 00:56
CHILLS
import ddf.minim.*;
import ddf.minim.analysis.*;
Minim minim;
AudioPlayer groove;
BeatDetect beat;
BeatListener bl;
@yyolk
yyolk / sketch1.js
Created December 3, 2012 00:47
An Experiment in abstract shading
//A experiment in abstract shading.
float t = 0.2;
float spX, spY;
float stopVal;
//color lookup array
color[] colors = new color[5];
@yyolk
yyolk / sketch2.js
Created December 3, 2012 00:49
Sketch 2
// Sketch2
// CONTROLS:
// Click on the canvas to pause/unpause
// r = saves the current frame
// any other key while paused = step forward one frame
// This runs through draw to create a canvas filled with little shape.
// I swear I see things if I stare at this long enough.
@yyolk
yyolk / sketch4.js
Created December 3, 2012 00:51
Sketch 4 "Stare Long II"
// Sketch 4 - "Stare Long II"
NP foo[];
float rot;
void setup(){
size(500,500);
foo = new NP[12];
@yyolk
yyolk / sketch4.5.js
Created December 3, 2012 00:52
stareiii
// Based on Sketch4 -
// "Stare Long - II"
// http://bit.ly/fbMlxO
NP foo[];
int iterations = 6;
void setup(){