1 html output option 2 +todo.rb color configuration option 3 buy tea bags! @cambridgeport 4 make better email response system for +kindlefeeder +kaja 5 +todo.rb make help a command with output 6 @cambridgeport buy toothpaste 7 +kaja dogood facebook!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
test = 'hello world' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="Guardian_2010-10-15"> | |
<metadata> | |
<dc-metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> | |
<dc:title>The Guardian (Unofficial)</dc:title> | |
<dc:language>en-gb</dc:language> | |
<meta content="cover-image" name="cover"/> | |
<dc:creator>The Guardian</dc:creator> | |
<dc:publisher>The Guardian</dc:publisher> | |
<dc:subject>News</dc:subject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code> | |
1 todo will be per project | |
2 todo note attachments | |
3 +todo.rb color configuration option | |
4 buy tea bags! @cambridgeport | |
5 make better email response system for +kindlefeeder +kaja | |
6 +todo.rb make help a command with output | |
7 @cambridgeport buy toothpaste | |
8 +kaja dogood facebook | |
9 @email email nate back |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the command line layer of a detachable Sinatra endpoint for the JavaScript MVC api | |
require 'sequel' | |
require 'json' | |
require 'csv' | |
require 'sinatra/base' | |
module Api2 | |
DB = Sequel.connect "postgres:///adatabase" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloads the Twelve-Factor App guide from http://www.12factor.net/ and | |
# converts it to plain text, convenient for printing | |
base=www.12factor.net | |
out=12factor.txt | |
rm $out | |
wget -r http://$base | |
grep 'href.*h2' $base/index.html | | |
sed "s/.*href='\([^']*\)'>.*/\1/" | | |
while read chapter; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# What: | |
# | |
# This script pulls down the Google Spreadsheet for the Boston Ruby Workshop | |
# on August 17 and 18 and reformats it. Note that you need permissions to | |
# access the doc for this to work. | |
# | |
# Instructions: | |
# |
My recipe for setting up Xmonad on Ubuntu GNU/Linux is here.
What is xmonad? Read this page to learn.
Some of these instructions were adapted from the Source Matters Blog. But I also depart from those instructions in certain ways.
For setting up Xmonad on OS X Lion, click here.
Install Xmonad with sudo apt-get install xmonad
.
The following settings are adapted with modifications from http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Ubuntu_Oneiric.
Put this configuration in /usr/share/xsessions/xmonad-gnome-session.desktop
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind-key L switch-client -l | |
bind-key '"' command-prompt "switch-client -t '%%'" |