Skip to content

Instantly share code, notes, and snippets.

View jmburges's full-sized avatar

Joe Burgess jmburges

View GitHub Profile
@jmburges
jmburges / fileName
Created July 6, 2017 20:12
mydestip
asdfoiajsdf
@jmburges
jmburges / fileName
Created July 6, 2017 16:42
describe 3
Content 3
@jmburges
jmburges / fileName
Created July 6, 2017 16:42
Description 2
Content 2
@jmburges
jmburges / fileName
Created July 6, 2017 16:41
describe
This is some content
@jmburges
jmburges / gist:3833178
Created October 4, 2012 12:01
Initial script to parse Kayak feed for finding flights under a certain price from a certain airport on a certain airline
require 'feedzirra'
feed = Feedzirra::Feed.fetch_and_parse("http://www.kayak.com/h/rss/buzz?code=#{ARGV[0]}")
feed.entries.each do |entry|
if /^.+\sfound\stoday/.match(entry.title) && /^.+\son\s#{ARGV[1]}\sfound/.match(entry.title)
from = entry.title.scan(/^([A-Z]{3})/).first.last
to = entry.title.scan(/^[A-Z]{3} to ([A-Z]{3})/).first.last
cost = entry.title.scan(/^.+ \$(\d+)/).first.last.to_i
if cost<ARGV[2].to_i