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
test |
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
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> |
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 '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! |
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 "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) |
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
def whack(objects) | |
result = {} | |
objects.each do |o| | |
result[o.send("table_name")] = o.send("delete_all") | |
end | |
result | |
end |
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
class FooBar | |
def meth | |
end | |
private | |
def private_meth | |
end | |
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
class FooBar | |
def method | |
end | |
private | |
def private_meth | |
end | |
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
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. |
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
<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> |
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
def some_code | |
"yo" | |
end |
OlderNewer