My Recent Pastes (43 and counting)
All Pasties (over 43 and counting)
Below are summaries of the 13 most recent pasties by Nic Williams.
April 21, 2007
5:12PM EDT
by Nic Williams
View more (24 lines)
1 2 3 4 5 |
def_tag :delete_button, :label, :message, :update, :ajax, :else, :image, :confirm do
if can_delete?(this)
opts = options.merge(if image
{ :type => "image", :src => "#{urlb}/images/#{image}" }
else
|
April 20, 2007
5:54PM EDT
by Nic Williams
1 2 3 |
<tr onclick="dostuff(); return _true_"> <a href="will_go_here.html">Go</a> </tr> |
April 20, 2007
5:47PM EDT
by Nic Williams
1 2 3 |
<tr onclick="dostuff(); return false"> <a href="...">Go</a> </tr> |
April 20, 2007
5:36PM EDT
by Nic Williams
View more (48 lines)
1 2 3 4 5 |
<page title="MyConfPlan">
<:intro>
<h1 class="front_page_title">MyConfPlan</h1>
</:intro>
|
April 20, 2007
3:05PM EDT
by Nic Williams
View more (9 lines)
1 2 3 4 5 |
class ProxyOwnerArray < Array
def proxy_owner
first
end
|
March 16, 2007
5:37PM EDT
by Nic Williams
1 2 3 4 |
a = "(865,0,'AmeriKKKa\'s_Most_Wanted',45,'asdf')" m = a.match(/'(XXXXX)'/) # => #<MatchData:0x24608> m[1] # => "AmeriKKKa's_Most_Wanted" |
March 16, 2007
5:22PM EDT
by Nic Williams
View more (8 lines)
1 2 3 4 5 |
unless file = ENV['FILE']
puts "\nRequires FILE parameter\n\n"
next
end
unless File.exists? file
|
Pastie