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
Paperclip::Attachment.default_options[:url] = ':http://bindery-assets.s3.amazonaws.com' | |
Paperclip::Attachment.default_options[:s3_host_name] = 's3-us-east-2.amazonaws.com' |
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
config.paperclip_defaults = { | |
storage: :s3, | |
s3_host_name: "s3-us-east-2.amazonaws.com", | |
s3_credentials: { | |
bucket: ENV["AWS_S3_BUCKET"], | |
access_key_id: ENV["AWS_ACCESS_KEY_ID"], | |
secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"], | |
s3_region: ENV['us-east-1'] | |
} | |
} |
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
.header, | |
.footer { | |
display: none; | |
} | |
.game .next { | |
left: 0 !important; | |
top: -150px !important; | |
} |
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
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |
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
$(function(){ | |
var $progressBar = $('.progress-pie-chart'); | |
var percent = parseInt($progressBar.data('percent')); | |
var deg = 360*percent/100; | |
if (percent > 50) { | |
$progressBar.addClass('gt-50'); | |
} | |
$('.ppc-progress-fill').css('transform','rotate('+ deg +'deg)'); | |
}); |
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
$.each($('textarea'), function() { | |
var offset = this.offsetHeight - this.clientHeight; | |
var resizeTextarea = function(el) { | |
$(el).css('height', 'auto').css('height', el.scrollHeight + offset); | |
}; | |
$(this).on('keyup input', function() { resizeTextarea(this); }); | |
}); |
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
<form action='whatever' onsubmit='return copyContent()'> |
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
<a href="#" class="a.underline-link"> |
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
Install this package: https://github.com/skuroda/PackageResourceViewer | |
Open the Command Palette: Shift - Option - P | |
'Open Package' | |
'[theme-name].sublime-theme' | |
Copy JSON from [theme-name].sublime-theme below |
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
select { | |
border: 0 !important; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
border-radius: 0; | |
width: 100%; | |
background-color: white; | |
background: image-url("your-image.png") no-repeat right; | |
text-indent: 0.01px; | |
text-overflow: hidden; |
NewerOlder