Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@amycheng
amycheng / cleanFormJS.js
Created October 23, 2012 17:29
cleanest jQuery I've ever writtern
$formField.click(function(){
var $_this= $(this);
$_this
.css('opacity','1')
.find('input').removeAttr('disabled');
$_this.siblings()
.css('opacity','.5')
.find('input').attr('disabled','disabled');
});
@amycheng
amycheng / ceremony.txt
Created August 6, 2015 01:01
Ceremony, a cyborg poem
Allow
the
disapproving
to
be distant
When
almost
promising,
the
@amycheng
amycheng / elizabeth.txt
Created August 6, 2015 00:36
Elizabeth, a cyborg poem
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
amycheng / present_relief.txt
Created August 6, 2015 00:23
Present Relief, a cyborg poem
"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
amycheng / phpunit_tips.php
Created January 29, 2015 17:04
PHPunit tips
//to print to the command line during a test
fwrite(STDERR, print_r("comment", TRUE));
//to use CLI colors
phpunit --colors