Skip to content

Instantly share code, notes, and snippets.

View tgaeta's full-sized avatar
🖖
Live long and prosper.

Tony Gaeta tgaeta

🖖
Live long and prosper.
View GitHub Profile
@CompuIves
CompuIves / codesandbox-editor.css
Created April 10, 2017 12:07
CodeSandbox Editor styles
.cm-s-oceanic.CodeMirror {
font-family: 'Source Code Pro', monospace;
background: #1C2022;
color: #e0e0e0;
height: 100%;
font-size: 14px;
font-weight: 500;
}
.cm-s-oceanic div.CodeMirror-selected { background: #374140; }
@remino
remino / compression.rb
Created September 3, 2014 03:58
Ruby on Rails: Minify HTML, CSS, & JS, and compress with gzip https://remino.net/rails-html-css-js-gzip-compression/
# config/initializers/compression.rb
Rails.application.configure do
# Use environment names or environment variables:
# break unless Rails.env.production?
break unless ENV['ENABLE_COMPRESSION'] == '1'
# Strip all comments from JavaScript files, even copyright notices.
# By doing so, you are legally required to acknowledge
# the use of the software somewhere in your Web site or app: