Skip to content

Instantly share code, notes, and snippets.

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 6
Adafruit_NeoPixel bigStrip = Adafruit_NeoPixel(150, 6, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel smallStrip = Adafruit_NeoPixel(21, 7, NEO_GRB + NEO_KHZ800);
{"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":{

Explorable Explanations Design Patterns

Experiencing (First Person + Third Person)

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).

/**
* Dabblet Test
*/
background: #f06;
background: linear-gradient(45deg, #f06, green);
min-height: 100%;
@electronicwhisper
electronicwhisper / gist:4114971
Created November 19, 2012 23:52
Mandelbrot shader
precision mediump float;
varying vec2 position;
void main() {
vec2 c = position;
vec2 z = c;
float escape = 0.;
const float iter = 50.;
@electronicwhisper
electronicwhisper / gist:2476106
Created April 24, 2012 03:24
testing anonymous gist
here it is2
@electronicwhisper
electronicwhisper / gist:1742287
Created February 5, 2012 03:07
Toby Schachman ITP Thesis Proposal

Totem

Date Submitted: 3 Feb 2012

Elevator Statement

Develop the next generation of programming tools for the next generation of computer programmers.

Brief Description

@electronicwhisper
electronicwhisper / gist:1542452
Created December 31, 2011 01:57
Quasicrystal in Core Image
// 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);
}
@electronicwhisper
electronicwhisper / ko-button.css
Created August 28, 2011 20:51
For the node knockout competition vote button
body {color: #ccc}
@electronicwhisper
electronicwhisper / gist:996951
Created May 28, 2011 15:32
first draft of a sample program (the game Safari!) in a Totem-like language
###
Systems
###
system "World",
state:
worldWidth: 800
worldHeight: 600