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
var gulp = require('gulp'); | |
var filter = require('gulp-filter'); | |
var source = require('vinyl-source-stream'); | |
var gutil = require('gulp-util'); | |
var path = require('path'); | |
var colors = require('colors'); | |
var createBundle = function(file) { | |
var method = (env.prebuild || env.stage || env.production) ? 'browserify' : 'watchify'; |
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
_.mixin({ | |
serialize: function (obj) { | |
var urlParams = _.map(obj, function (val, key) { | |
var value = (_.isObject(val)) ? JSON.stringify(val) : String(val); | |
return String(key) + '=' + value; | |
}); | |
return urlParams.join('&'); | |
} | |
}); |
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
/** | |
* Converts an image to | |
* a base64 string. | |
* | |
* If you want to use the | |
* outputFormat or quality param | |
* I strongly recommend you read the docs | |
* @ mozilla for `canvas.toDataURL()` | |
* | |
* @param {String} url |
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
// cover e-v-e-r-y-t-i-n-g | |
@mixin coverer { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
// center |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
@mixin arrow_helper($arrowSize, $arrowColor, $margin, $side, $align) { | |
@if $side == "top" { | |
border-bottom-color: $arrowColor; | |
top: -2 * $arrowSize; | |
} | |
@if $side == "bottom" { | |
border-top-color: $arrowColor; | |
bottom: -2 * $arrowSize; | |
} | |
@if $side == "left" { |
NewerOlder