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
| alias fucking=sudo | |
| alias "npm-update"="rm -rf node_modules && npm install" | |
| alias "update-everything"="nave usemain stable && sudo npm update -g && brew update && brew upgrade" | |
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' | |
| function parse_git_dirty { |
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 os = require('os'); | |
| var path = require('path'); | |
| var randomDir = function() { | |
| return path.join(os.tmpdir(), String(Math.floor(Math.random()*1000))); | |
| }; | |
| var openit = function(url) { | |
| var chromeLocation = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'; | |
| var args = [ |
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 source = require('vinyl-source-stream') | |
| var buffer = require('vinyl-buffer'); | |
| var queue = require('streamqueue'); | |
| gulp.task('shit', function(){ | |
| // make the fake file | |
| var fakeFile = source('fake.js'); | |
| var buffered = fakeFile.pipe(buffer()); | |
| // join the streams |
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 util = require('loader-utils'); | |
| var File = require('vinyl'); | |
| var gulp2webpack = function(streamConstructor, opt) { | |
| opt = opt || {}; | |
| return function(content) { | |
| var cb = this.async(); | |
| if (opt.cacheable) this.cacheable(); | |
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
| 'use strict'; | |
| var through = require('through2'); | |
| module.exports = function () { | |
| return through.obj(function(file, enc, cb) { | |
| cb(null, file.clone()); | |
| }); | |
| }; |
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
| body | |
| font-smoothing: antialiased | |
| text-rendering: optimizeLegibility | |
| font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif | |
| font-weight: 300 |
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
| macro | { | |
| rule infix { | |
| $x:expr | $y ($args ...) | |
| } => { | |
| $x.pipe($y($args...)) | |
| } | |
| rule infix { | |
| $x:expr | $y | |
| } => { |
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 through = require('through2'); | |
| var gutil = require('gulp-util'); | |
| var exec = require('child_process').exec; | |
| var escape = require('any-shell-escape'); | |
| module.exports = function (message, opt) { | |
| if(!opt) opt = {}; | |
| if(!message) throw new Error('gulp-git: Commit message is required git.commit("commit message")'); | |
| if(!opt.args) opt.args = ' '; |
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 gulp = require('gulp'); | |
| var gi = require('gulp-if'); | |
| gulp.src(['*.js', '*.css']) | |
| .pipe(dostuff()) | |
| .pipe(gi('*.js', gulp.dest('js')) | |
| .pipe(gi('*.css', gulp.dest('css')) | |
| .pipe(gulp.dest('all')); |
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
| // pseudocode but something like this | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var gif = require('gulp-if'); | |
| function getFolders(dir){ | |
| return fs.readdirSync(dir) | |
| .filter(function(file){ |