Skip to content

Instantly share code, notes, and snippets.

View heliostatic's full-sized avatar

Ben Lee-Cohen heliostatic

View GitHub Profile
bonsai
rdiscount
#!/usr/bin/ruby
#
# I deliberately didn't DRY /usr/local references into a variable as this
# script will not "just work" if you change the destination directory. However
# please feel free to fork it and make that possible.
#
# If you do fork, please ensure you add a comment here that explains what the
# changes are intended to do and how well you tested them.
#
# 14th March 2010:
@heliostatic
heliostatic / example_note_keeping_app.rb
Created March 16, 2010 04:40 — forked from pietern/example_note_keeping_app.rb
fork of an example note taking app
require 'rubygems'
require 'sinatra'
require 'redis'
# To use, simply start your Redis server and boot this
# example app with:
# ruby example_note_keeping_app.rb
#
# Point your browser to http://localhost:4567 and enjoy!
#
@heliostatic
heliostatic / pinboard_unread.rb
Created September 8, 2009 22:42
Check and email your recent, unread links on Pinboard.in
require 'rubygems'
require 'open-uri'
require 'nokogiri'
require 'mechanize'
require 'chronic'
require 'tlsmail'
require 'time'
agent = WWW::Mechanize.new