Date Submitted: 3 Feb 2012
Develop the next generation of programming tools for the next generation of computer programmers.
#!/usr/bin/ruby | |
mp3s = `mdfind kMDItemContentType=public.mp3` | |
mp3s = mp3s.split("\n") | |
mp3s.shuffle! | |
count = 0 | |
mp3s.each do |mp3| | |
puts "(#{count += 1}/#{mp3s.length}) #{mp3}" | |
system "afplay -v 0.1 \"#{mp3}\" &" |
### | |
Systems | |
### | |
system "World", | |
state: | |
worldWidth: 800 | |
worldHeight: 600 |
// Quasicrystal in Core Image | |
// port of http://mainisusuallyafunction.blogspot.com/2011/10/quasicrystals-as-sums-of-waves-in-plane.html | |
// HSV conversion | |
// adapted from http://shapeof.com/archives/2010/07/making_a_color_wheel_in_core_image.html | |
bool isOdd(int v) { | |
float dividend = float(v) / 2.0; | |
return dividend != floor(dividend); | |
} |
here it is2 |
precision mediump float; | |
varying vec2 position; | |
void main() { | |
vec2 c = position; | |
vec2 z = c; | |
float escape = 0.; | |
const float iter = 50.; |
/** | |
* Dabblet Test | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, green); | |
min-height: 100%; |
Play the algorithm. Put the reader in the "mind" of the algorithm (first person) while also seeing the algorithm's high level behavior (third person).
{"objects":{"ido8ftoeiimhfq7l1":{"editingElement":{"__ref":"idnc1jjyiimhfq670"},"selectedParticularElement":{"__ref":"idndlrpbiimhregg4i"},"createPanelElements":[{"__ref":"Rectangle"},{"__ref":"Circle"},{"__ref":"Text"},{"__ref":"idnc1jjyiimhfq670"}],"id":"ido8ftoeiimhfq7l1","__proto":{"__ref":"Project"}},"idnc1jjyiimhfq670":{"_master":{"__ref":"Group"},"_variants":[],"_parent":null,"_children":[{"__ref":"idgwdypqiimhfq7l2"},{"__ref":"id1q82c0iimhqysu42"}],"_head":{"__ref":"idnc1jjyiimhfq670"},"_isHatched":true,"expanded":true,"id":"idnc1jjyiimhfq670","__proto":{"__ref":"Group"}},"idgwdypqiimhfq7l2":{"_master":{"__ref":"idup8ga2iimhfq7l3"},"_variants":[],"_parent":{"__ref":"idnc1jjyiimhfq670"},"_children":[{"__ref":"idfaae9piimhfq7p1c"},{"__ref":"idsuy8bliimhfq7p1a"},{"__ref":"idwbvt7piimhfq7mr"},{"__ref":"idujw42viimhfq7nz"},{"__ref":"idec8178iimhfq7o17"}],"_head":{"__ref":"idnc1jjyiimhfq670"},"_isHatched":true,"id":"idgwdypqiimhfq7l2","__proto":{"__ref":"idup8ga2iimhfq7l3"}},"idup8ga2iimhfq7l3":{"_master":{ |