Public Gists by arn

Gravatar
Fri Jul 17 08:28:25 -0700 2009
1
2
3
# A simple Pomodoro app in Shoes
# Set your focus/break cycles, get it running with Shoes
# and become master of your domain.
Gravatar
Sat Jul 11 20:45:31 -0700 2009
1
2
3
# parsing a line for 'tagged' words
 
'hello there, this is a test @word @lorem and stuff @ipsum @dolor @11am'.split(/\s+/).map { |word| word if word =~ /@\w+/ }.compact
Gravatar
Fri Jul 10 22:41:52 -0700 2009
1
2
3
# A Textmate Command that can figure out what the previous selector in a CSS file
# relative to the cursor is and put that selector in the place of the cursor,
# complete with a string highlighted and ready to be edited. This is handy when
Gravatar
Sat Jun 20 21:52:14 -0700 2009
1
2
3
# using Sinatra and Amazon's SimpleDb
# to create a blog without local storage
 
Gravatar
Mon Jun 15 20:00:01 -0700 2009
1
2
3
# this class sychronizes a local model with an S3
# bucket, using the remote bucket as the 'authoritative'
# store - removing items from S3 removes them locally,
Gravatar
Thu Feb 05 10:09:50 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Mon Dec 08 08:18:01 -0800 2008
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>