Skip to content

Instantly share code, notes, and snippets.

View ricburton's full-sized avatar
🎯
Focusing

Richard Burton ricburton

🎯
Focusing
View GitHub Profile
@ricburton
ricburton / girl_text_parser.rb
Created December 6, 2011 13:45
How to know if a chick is into you.
if text.reply <= 1 hour
girl.interested = true
elsif text.reply.include? '?'
girl.interested = true
elsif
girl.interested = false
end
@ricburton
ricburton / kindling.rb
Created November 29, 2011 08:53
Kindling
=begin
The Kindle clippings are each accompanied with a lot of useful information. However, when you're scanning over them it can get annoying to keep seeing them formatted as such:
the mystical process of extracting value (money) from idle IP assets
==========
Essentials of Licensing Intellectual Property (Alexander I. Poltorak, Paul J. Lerner)
- Highlight on Page 16 | Added on Friday, 25 November 11 10:42:19 Greenwich Mean Time
The script below is a tiny bit of ruby that will strip out all the dross and leave behind:
@ricburton
ricburton / instascrape.rb
Created November 28, 2011 09:01
Instagram scraper using mechanize
require 'rubygems'
require 'mechanize'
require 'uri'
url = "http://instagr.am/p/WOkyj"
@mech = Mechanize.new
@page = @mech.get(url)