Skip to content

Instantly share code, notes, and snippets.

View jemgold's full-sized avatar
👽
vibing

Jem jemgold

👽
vibing
View GitHub Profile
@jemgold
jemgold / dabblet.css
Created February 7, 2012 19:22
Untitled
@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;
}
@jemgold
jemgold / dabblet.css
Created February 8, 2012 16:01
Untitled
body {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:13px;
color:#333;
}
#mask {
position:absolute;
background:black;
width:100%;
@jemgold
jemgold / dabblet.css
Created February 13, 2012 18:31
Untitled
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
color: #333;
}
#mask {
position: absolute;
background: black;
width: 100%;
height: 100%;
@jemgold
jemgold / dabblet.css
Created March 8, 2012 22:45
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.circle {
height: 100px;
width:100px;
background:#373e4e;
border-radius:50px;
margin: 40px
@jemgold
jemgold / gist:2835811
Created May 30, 2012 11:59
Add 'Win' or 'Mac' to html tag
$('html').addClass(navigator.platform.substring(0,3))
def kitten_image_tag(size)
image_tag "http://placekitten.com/#{size}", size: size
end
// 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)
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.
// 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
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."