Skip to content

Instantly share code, notes, and snippets.

View jem-computer's full-sized avatar
🌈

Jem jem-computer

🌈
View GitHub Profile
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.
// 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)
def kitten_image_tag(size)
image_tag "http://placekitten.com/#{size}", size: size
end
@jem-computer
jem-computer / gist:2835811
Created May 30, 2012 11:59
Add 'Win' or 'Mac' to html tag
$('html').addClass(navigator.platform.substring(0,3))
@jem-computer
jem-computer / 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
@jem-computer
jem-computer / 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%;
body {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:13px;
color:#333;
}
#mask {
position:absolute;
background:black;
width:100%;
@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;
}