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 'nokogiri' | |
require 'open-uri' | |
url = 'http://www.theskepticsguide.org/archive/podcast.aspx?mid=1' | |
doc = Nokogiri::HTML(open(url)) | |
sgu_mp3s = doc.xpath("//a").select {|link| link['href'] =~ /\.mp3$/ } | |
sgu_mp3s.each do |link| | |
xpathhref = link['href'] |
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
namespace :attachments do | |
task :migrate_to_s3 => :environment do | |
require 'aws/s3' | |
# Load credentials | |
s3_options = YAML.load_file(File.join(Rails.root, 'config/s3.yml')).symbolize_keys | |
bucket = s3_options[:bucket_name] | |
# Establish S3 connection |
I hereby claim:
- I am seanmarcia on github.
- I am seanmarcia (https://keybase.io/seanmarcia) on keybase.
- I have a public key whose fingerprint is 663D 5F3A A287 951F 0624 10A7 123C 6BBC 5A1C 07BC
To claim this, I am signing this object:
->THIS TEXT IS IN THE CENTER!
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
Do you like ruby? Do you like doing good? Do you like hanging out with other rubyists? | |
If you answered yes to all three of these questions you need to come out to Ruby for Good (rubyforgood.com), a 3-day all inclusive conference in the DC area being held July 31st through August 2nd. | |
What will we be doing? | |
We are going to be lending our hacking skills for "good" projects - places that need help but don't have the resources to pay for people with our skill set. Some of the organizatinos we've signed on to help this year are the Humane Society (we love fluffies), Growhaus (a non profit that supplies healthy food to low income families), Purple Door Coffee (an organization that provides jobs to homeless kids and teaches them real skills) and many others. to We are still accepting project suggestions, so if you volunteer for a local non-profit and see a need, please let us know. | |
Is it all work? | |
No! The evenings are going to be filled with fun, games and socializing. We'll definitely have a game (or two) of Art |
Did you know that 90% of everything around us has traveled via a shipping container? Two years ago I didn't. Find out how two friends who knew nothing about the shipping industry were able to build and scale a system that tracks 85% of all containers that enter Haiti.
This is the story of how two developers who knew nothing about the shipping industry built a system that now manages 85% of all containers that enter the country of Haiti. Having to build a system for an industry which you know nothing about is already a challenge. Having to build it fast is even a bigger challenge.
OlderNewer