Are you dashing? Are you hot? Then you need the Dashing Hotness Widget!
See the blog post for more details.
This widget is similar to the basic Number widget, except that the entire widget changes colour based on the value displayed. It is designed to draw attention to
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
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
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 String | |
def to_bool | |
case | |
when self == true || self =~ /^(true|t|yes|y|1)$/i | |
true | |
when self == false || self.blank? || self =~ /^(false|f|no|n|0)$/i | |
false | |
else | |
raise ArgumentError.new "invalid value for Boolean: '#{self}'" |
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
if ($request_uri = /) { | |
set $test A; | |
} | |
if ($host ~* teambox.com) { | |
set $test "${test}B"; | |
} | |
if ($http_cookie !~* "auth_token") { | |
set $test "${test}C"; |
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
Stripe.setPublishableKey('YOUR_PUBLISHABLE_KEY'); | |
$("#payment-form").submit((event) -> | |
# disable the submit button to prevent repeated clicks | |
$('.submit-button').attr("disabled", "disabled") | |
Stripe.createToken({ | |
number: $('.card-number').val(), | |
cvc: $('.card-cvc').val(), | |
exp_month: $('.card-expiry-month').val(), |