Skip to content

Instantly share code, notes, and snippets.

View phpunit_tips.php
//to print to the command line during a test
fwrite(STDERR, print_r("comment", TRUE));
//to use CLI colors
phpunit --colors
amycheng / elizabeth.txt
Created Aug 6, 2015
Elizabeth, a cyborg poem
View elizabeth.txt
Elizabeth's seeming really vexed and embarrassed.
Her acquaintance was at least as much embarrassed as herself.
She had resolved to be perfectly easy
A resolution.
"I know my own strength, and I shall never be embarrassed again"
"But I was embarrassed."
amycheng / present_relief.txt
Created Aug 6, 2015
Present Relief, a cyborg poem
View present_relief.txt
"A glass of wine; shall I get you one? You are very ill."
And so I let down the side-glass next to him
and took faintness
full of something
a glass of it
I talk, and arranged, and wrapped myself up without opening
for whatever
amycheng / ceremony.txt
Created Aug 6, 2015
Ceremony, a cyborg poem
View ceremony.txt
be distant
amycheng / cleanFormJS.js
Created Oct 23, 2012
cleanest jQuery I've ever writtern
View cleanFormJS.js
var $_this= $(this);
amycheng / placeholderfallback
Created Jan 29, 2013
polyfill for placeholder
View placeholderfallback
$(function() {
function isPlaceholderSupported() {
var input = document.createElement("input");
return ('placeholder' in input);
var placeholdersupport = isPlaceholderSupported();
if (placeholdersupport == false) {
// If there is no placeholder support,
amycheng / transitionEnd.js
Created Apr 30, 2013
a simple jQuery plugin for creating callbacks for CSS3 transitions
View transitionEnd.js
$.fn.transitionEnd = function(callback) {
//plugin for detecting the end of a transition and then doing a callback
$(this).one('webkitTransitionEnd otransitionend msTransitionEnd transitionend',
function(e) {
if (typeof callback == 'function') {;
amycheng / cookie.js
Created May 10, 2013
methods for creating/reading/erasing cookies via JS
View cookie.js
amycheng / inView
Created Aug 22, 2013
a javascript function to check if a html element is in view
View inView
function inView(el){
//check if a DOM element is in view
var scrollDistance=document.body.scrollTop;
if (scrollDistance>=el.offsetTop&&scrollDistance<el.offsetHeight+el.offsetTop) {
return true;
return false;
amycheng / analysis of
Last active Dec 23, 2015
a guess at how the BOX performance works
View analysis of

A quick and dirty technology dissection of BOX

The installation/performance in question: .

Bot and Dolly (the firm behind this performance/installation) will will apparently release a post-mortem at some point but here's a quick dissection of the tech.

A big part of this performance is video/projection mapping (mapping animations and graphics to physical objects that aren't necessarily a screen).

MadMapper ( seems to be the app of choice to getting started with projection mapping really quickly is (it's expensive tho).