April 2009
6 posts
Copy and Paste improved for the web...
Browsers are silly. Why can’t they paste to a user’s clipboard? At least they can with flash, and that’s where clippy comes in. But what if you want to copy from a field that gets changed on the page? Now you can. My change to clippy allows you to provide a javascript callback to clippy. demo: function getCopiedText() { return...
Apr 29th
Apr 19th
2 notes
Ruby enumerable every
Enumerable Every Pretty cool idea, it replaces the notion of Symbol#to_proc with a slightly cleaner, simpler syntax. enum = [1.4, 2.4 ,3.4] enum.map {|n| n.floor } #=> [1, 2, 3] enum.map(&:floor) #=> [1, 2, 3] enum.every.floor #=> [1, 2, 3] neat! Who says you can’t make things simpler. Check it out on github.
Apr 10th
1 tag
create remote git branch
git push origin origin:refs/heads/new_branch git fetch origin git checkout --track -b new_branch origin/new_branch I always forget this. I need a nice post-it for it.
Apr 3rd
“To invent, you need a good imagination and a pile of junk.”
– Thomas A. Edison
Apr 2nd
ToorCamp 2009 →
Hackers take over a missile silo. Looks better than an episode of 24.
Apr 1st