This file contains hidden or 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 wizard_steps_list | |
methods = %w(past_step future_step previous_step next_step) | |
content_tag(:ol, { class: 'wizard_steps' }, false) do | |
wizard_steps.map do |wizard_step| | |
classes = methods.collect{ |method| method if send(method+'?', wizard_step) }.compact | |
classes = ['current_step'] unless classes.length > 0 | |
concat(content_tag(:li, link_to_if(past_step?(wizard_step), wizard_step.to_s.titleize, wizard_path(wizard_step)), { class: classes.join(' ') }, false)) | |
end | |
end | |
end |
This file contains hidden or 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
#MyBetaList { | |
font: 14px Arial, sans-serif; | |
color: black; | |
background-color: white; | |
font-size: 12px; | |
line-height: 15px; | |
padding: 20px; | |
-webkit-border-radius: 8px; | |
-moz-border-radius: 8px; | |
margin: 10px auto 20px auto; } |
This file contains hidden or 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
#!/usr/bin/env ruby -wKU | |
require 'net/http' | |
clipboard = %x{__CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbpaste}.strip | |
def e_url(string) | |
string.gsub(/([^a-zA-Z0-9_.-]+)/n) do | |
'%' + $1.unpack('H2' * $1.size).join('%').upcase | |
end |
This file contains hidden or 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
diff --git a/fave.js b/fave.js | |
new file mode 100644 | |
index 0000000..0745838 | |
--- /dev/null | |
+++ b/fave.js | |
@@ -0,0 +1,7 @@ | |
+(function(){ | |
+ switch(location.hostname){ | |
+ case "shuffler.fm": | |
+ $('div#favorite')[0].click(); |
This file contains hidden or 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
<!-- Insert this in your BODY tag --> | |
<script language="javascript" src="https://raw.github.com/gist/1671569/77258cb95509125c25a9309ef7a52697f1dc28ba/batman.js"></script> |
This file contains hidden or 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
document.getElementsByTagName('body')[0].innerHTML = '<object width="1" height="1"><param name="movie" value="http://www.youtube.com/v/VSaDPc1Cs5U&autoplay=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/VSaDPc1Cs5U&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="1" height="1"></embed></object>'+document.getElementsByTagName('body')[0].innerHTML |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# Command line util for acquiring a one-off Twitter OAuth access token | |
# Based on http://blog.beefyapps.com/2010/01/simple-ruby-oauth-with-twitter/ | |
require 'rubygems' | |
require 'oauth' | |
puts <<EOS | |
Set up your application at https://twitter.com/apps/ (as a 'Client' app), |
This file contains hidden or 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 Ant-Sugar Tales | |
=================== | |
By Candice Yellowflower- | |
this-is-an-example-of-a-long-word-that-should-match-as-well | |
"The _Ant-Sugar Tales_ is a collection" of short stories told from the | |
perspective of a fine young lady from [Venice][1], who has some run-ins | |
with a few [inquisitive insects][2]. Each tale presents a moral quandry, |
This file contains hidden or 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
<object width="605" height="354" type="application/x-shockwave-flash" id="bitgravity_player_6" data="http://bitcast-b.bitgravity.com/player/6/bitgravity_player_v6_1_7b.swf"><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><param name="wmode" value="transparent"/><param name="flashvars" value="File=http://bglive-a.bitgravity.com/demo/live/2009&Mode=live&AutoPlay=true"/></object> |
NewerOlder