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
@import url('https://raw.github.com/daneden/animate.css/master/animate.css'); | |
#mask { | |
position:absolute; | |
background:black; | |
width:100%; | |
height:100%; | |
opacity:.6; | |
z-index:10; | |
} |
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
body { | |
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size:13px; | |
color:#333; | |
} | |
#mask { | |
position:absolute; | |
background:black; | |
width:100%; |
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
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 13px; | |
color: #333; | |
} | |
#mask { | |
position: absolute; | |
background: black; | |
width: 100%; | |
height: 100%; |
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 first commented line is your dabblet’s title | |
*/ | |
.circle { | |
height: 100px; | |
width:100px; | |
background:#373e4e; | |
border-radius:50px; | |
margin: 40px |
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
$('html').addClass(navigator.platform.substring(0,3)) |
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 kitten_image_tag(size) | |
image_tag "http://placekitten.com/#{size}", size: size | |
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
// http://csswizardry.com/2012/06/single-direction-margin-declarations/ | |
=font-size($sizeValue: 1) | |
font-size: ($sizeValue * 16) + px | |
font-size: $sizeValue + rem | |
=margin-right-rem($margin: 1.6) | |
margin-right: ($margin * 16) + px | |
margin-right: $margin + rem | |
=margin-bottom-rem($margin: 1.6) |
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
I'm having trouble uploading to S3 from Rails 3.1.5 using CarrierWave 0.5.8 and Fog 1.4.0. | |
CarrierWave worked fine storing files locally, the problem is with the Fog/S3 integration. | |
Tried removing the Rails.env.development? || Rails.env.production?, changing config.fog_public to false, changing the S3 region, and all the things I've commented out too. | |
Any ideas? | |
EDIT: forgot to add - my environment variables stored just fine - it looks like Fog isn't finding them at all though. |
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
// Either of the following two patterns can be used to immediately invoke | |
// a function expression, utilizing the function's execution context to | |
// create "privacy." | |
(function(){ /* code */ }()); // Crockford recommends this one | |
(function(){ /* code */ })(); // But this one works just as well | |
// Because the point of the parens or coercing operators is to disambiguate | |
// between function expressions and function declarations, they can be |
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
directory "tmp" | |
file "tmp/hello.tmp" => "tmp" do | |
sh "echo 'Hello' > 'tmp/hello.tmp'" | |
end | |
task :default => 'morning:turn_off_alarm' | |
namespace :morning do | |
desc "Turn off alarm." |
OlderNewer