Oct 16 2010
- 04/10/2011 - Updated application.js and application.rb thanks to @rebo's comments
In this article, I will walk through some simple steps to get a [demo app][2] up and running with [Backbone.js][3] and [Sinatra][4] on [Heroku][5].
import praw # simple interface to the reddit API, also handles rate limiting of requests | |
import re | |
from collections import deque | |
from time import sleep | |
USERNAME = "Your username here" | |
PASSWORD = "Your password here" | |
USERAGENT = "Your useragent string here. It should include your /u/username as a courtesy to reddit" | |
r = praw.Reddit(USERAGENT) |
function gs() { | |
BRANCH=$(git branch | grep "*" | sed 's/^\* //') | |
TODAY=$(date +"%Y%m%d-%H%M%S") | |
git stash save $TODAY-$BRANCH | |
} |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.19370138645172119</real> | |
<key>Green Component</key> | |
<real>0.15575926005840302</real> |
gbs () { | |
for k in `git branch | perl -pe 's/^..(.*?)( ->.*)?$/\1/'` | |
do | |
echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k -- | head -n 1`\\t$k | |
done | sort -r | awk '{ print $4, $5, $6, $7}' | head -n 10 | |
} |
<TaskerData sr="" dvi="1" tv="4.6u3m"> | |
<Profile sr="prof45" ve="2"> | |
<cdate>1421519030211</cdate> | |
<clp>true</clp> | |
<edate>1421529685178</edate> | |
<id>45</id> | |
<mid0>47</mid0> | |
<nme>Sonos Wand</nme> | |
<Event sr="con0" ve="2"> | |
<cname>Wave For Sonos</cname> |
on adding folder items to this_folder after receiving this_item | |
tell application "Finder" | |
open this_item | |
end tell | |
end adding folder items to |