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
| .ie8 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
| .ie8 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .ie8 .row.large-collapse .column, | |
| .ie8 .row.large-collapse .columns { padding: 0; } | |
| .ie8 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .ie8 .row .row.large-collapse { margin: 0; } | |
| .ie8 .column, .ie8 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
| .ie8 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } | |
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
| .parent { | |
| position: relative | |
| } | |
| .child { | |
| width: 100%; | |
| display: block; | |
| position: absolute; | |
| top: 50%; | |
| -webkit-transform: translateY(-50%); |
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').animate({ | |
| scrollTop: $("#elementID").offset().top | |
| }, 2000); |
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
| var scrollLevel = (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| concat: { | |
| options: { | |
| separator: ';' | |
| }, | |
| dist: { | |
| src: ['js/jquery.js', 'js/pin.js', 'js/animation.js'], | |
| dest: 'js/script.js' |
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
| # List active connections | |
| sudo netstat -ntlp | |
| # Find Node install path | |
| whereis node |
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
| var _ = { | |
| now: Date.now || function() { return new Date().getTime(); }, | |
| throttle: function(func, wait, options) { | |
| var context, args, result; | |
| var timeout = null; | |
| var previous = 0; | |
| options || (options = {}); | |
| var later = function() { |
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
| $(window).on('beforeunload', function() { | |
| $(window).scrollTop(0); | |
| }); |
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
| <VirtualHost *:80> | |
| ServerName myapp.example.com | |
| RewriteEngine On | |
| RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=permanent] | |
| </VirtualHost> | |
| <VirtualHost *:443> | |
| ServerName myapp.example.com | |
| DocumentRoot /var/www/myapp/current/public | |
| <Directory /var/www/myapp/current/public> |
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
| { | |
| "Version": "2014-01-01", | |
| "Statement": [{ | |
| "Sid": "AllowPublicRead", | |
| "Effect": "Allow", | |
| "Principal": { "AWS": "*" }, | |
| "Action": ["s3:GetObject"], | |
| "Resource": ["arn:aws:s3:::BUCKET_NAME/*" ] | |
| }] | |
| } |