This file contains 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
alias gitr='git' | |
alias gti='git' | |
alias got='git' | |
alias gut='git' | |
alias gi='git' | |
alias g='git' | |
alias gurnt='grunt' | |
alias gr='grunt' |
This file contains 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
[alias] | |
co = checkout | |
ci = commit | |
ca = commit --amend | |
cia = commit -a | |
can = commit --amend --no-edit | |
com = checkout master | |
st = status | |
s = status -s | |
b = branch |
This file contains 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
// Get height of the block when all elements are loaded | |
// This fixes some bugs with lazyload in some browsers, and slow connections | |
var $elements = $('#div').find('img, iframe'); | |
var elementsCount = $elements.length; | |
var loadedCount = 0; | |
$elements.on('load', function () { | |
loadedCount++; | |
if (loadedCount === elementsCount) { | |
getSetHeight(); |
This file contains 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
// Sass/SCSS | |
@mixin center($axis: "both") { | |
position: absolute; | |
@if $axis == "y" { | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-moz-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
-o-transform: translateY(-50%); | |
transform: translateY(-50%); |
This file contains 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
//////////////////////////////////////////////////////////////////////////////// | |
// PHP - Show single or conditional blocks on url change | |
//////////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////////////// | |
// Single | |
//////////////////////////////////////////////////////////////////////////////// | |
$ads = isset($_GET['ads']) ? $_GET['ads'] : FALSE; | |
<?php if($ads == 'yes') : ?> |