Skip to content

Instantly share code, notes, and snippets.

View infernalmaster's full-sized avatar
😻
Working from home

Rostyslav Diachok infernalmaster

😻
Working from home
View GitHub Profile

Three.JS Cubes

@mixin cover-background( $path ) {
background-image: url( $path );
@include background-size( cover );
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + $path + "', sizingMethod='scale')";
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='#{$path}', sizingMethod="scale");
}
# unicorn_rails -c /srv/myapp/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
working_directory (rails_env == 'production' ? "/srv/myapp/current" : `pwd`.gsub("\n", ""))
worker_processes (rails_env == 'production' ? 10 : 4)
preload_app true
timeout 30
if rails_env == 'production'