Skip to content

Instantly share code, notes, and snippets.

View rschenk's full-sized avatar
🐬
Space is the place

Ryan Schenk rschenk

🐬
Space is the place
View GitHub Profile
@rschenk
rschenk / gist:1659828
Created January 23, 2012 01:23
Method for increasing wife's marital satisfaction
ssh family_computer
sudo su
su wife -c "osascript -e 'tell application \"iTunes\"' -e 'set the sound volume to 0' -e 'pause' -e 'end tell'"
afplay path/to/tom_waits.mp3
su wife -c "osascript -e 'tell application \"iTunes\"' -e 'set the sound volume to 100' -e 'play' -e 'end tell'"
exit
exit
require 'date'
d1 = Date.parse('Apr 1, 2011')
d2 = Date.parse('Feb 1, 2011')
if d2 > d1
p "#{d2} comes before #{d1}"
elsif d1 > d2
p "#{d1} comes before #{d2}"
else
@rschenk
rschenk / gist:1333846
Created November 2, 2011 15:00
Nodester NPM Not Working
$ nodester app create synynyms
nodester info creating app: synynyms server.js
nodester info successfully created app synynyms to will run on port 12398 from server.js
nodester info run nodester app init synynyms to setup this app.
$
$
$ nodester app info synynyms
nodester info Gathering information about: synynyms
nodester warn synynyms on port 12398 running: false (pid: unknown)
nodester info gitrepo: git@nodester.com:/node/git/rschenk/4245-08cf4fe1d8242013d68cca50d4f02eb5.git
# Bedazzle terminal with Git branch information
NO_COLOR="\[\033[0m\]"
BLACK="\[\033[0;30m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
PURPLE="\[\033[0;35m\]"
CYAN="\[\033[0;36m\]"
GRAY="\[\033[0;90m\]"
= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"
-# Local fallback for if/when Google decides to stop hosting jQuery
:javascript
!window.jQuery && document.write(unescape(#{URI::escape javascript_include_tag("jquery.1.6.2.min.js")}));