Skip to content

Instantly share code, notes, and snippets.

View gustin's full-sized avatar
🦁
Happy

gustin gustin

🦁
Happy
View GitHub Profile
test
Link:
<a href="http://www.somesite.com">The Text You Want Linked</a>
Images:
<a href="http://www.mysite.com">
<img src="http://www.somesite.com/path/to/myimage.jpg" />
</a>
require 'rubygems'
require 'open-uri'
vids = []
f = open('http://feeds.feedburner.com/Rubyconf2008-Confreaks')
f.each do |l|
l =~ /enclosure url=\"([^\"]+)"/
vids << $1
end
vids.compact!.uniq!
require "rubygems"
require "hpricot"
require "open-uri"
url = "http://feeds.feedburner.com/Rubyconf2008-Confreaks"
(Hpricot(open url)/:enclosure).map {|x| x.attributes["url"]}.uniq.each do |vid|
filename = vid.gsub(/http:.+\//, '')
filename.gsub!(/-/, "_")
next if File.exist?(filename)
@gustin
gustin / gist:41505
Created December 30, 2008 04:04 — forked from damon/gist:41453
def whack(objects)
result = {}
objects.each do |o|
result[o.send("table_name")] = o.send("delete_all")
end
result
end
class FooBar
def meth
end
private
def private_meth
end
class FooBar
def method
end
private
def private_meth
end
The agile approach focuses on delivering business value
early in the project lifetime and being able to incorporate
emergent requirements.
It accentuates the use of rich, informal communication channels
and frequent delivery of running, tested systems, while attending
to the human component of software development.
<div class="bigroundbox">
<div class="boxcontainer">
<table cellspacing="0" cellpadding="0" class="shoptable">
<tr>
<th class="prodcol">Power Supply:</th>
<th class="standcol">Quantity</th>
<th class="standcol">Price</th>
<th class="standcol">Total</th>
<th class="standcol"></th>
</tr>
def some_code
"yo"
end