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
import gulp, { src, dest, parallel, series } from 'gulp'; | |
import del from 'del'; | |
import sourcemaps from 'gulp-sourcemaps'; | |
import postcss from 'gulp-postcss'; | |
import cssnext from 'cssnext'; | |
import atImport from 'postcss-import'; | |
import precss from 'precss'; | |
import watchify from 'watchify'; | |
import browserify from 'browserify'; | |
import source from 'vinyl-source-stream'; |
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'), | |
changed = require('gulp-changed'), | |
plumber = require('gulp-plumber'), | |
postcss = require('gulp-postcss'), | |
cssnext = require('cssnext'), | |
precss = require('precss'), | |
template = require('gulp-template'), | |
babel = require('gulp-babel'), | |
del = require('del'), | |
runSequence = require('run-sequence'), |
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
(function(window, document) { | |
'use strict'; | |
function process() { | |
var els = document.querySelectorAll('[data-def-src], [data-def-bg], [data-def-srcset]'), | |
len = els.length; | |
for (var i = 0; i < len; i++) { |
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
RAILS_ENV=production /usr/local/rvm/bin/app_clockwork /srv/www/SITE/current/clock.rb -e production >> /srv/www/SITE/shared/log/clockwork.log 2>&1 & |
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
description "Unicorn app" | |
author "Tore Holmberg <[email protected]>" | |
start on virtual-filesystems | |
stop on runlevel [06] | |
pre-start script | |
export HOME="/srv/www/nginx/app/current" | |
cd $HOME | |
exec sudo -u deploy /usr/local/rvm/bin/app_unicorn_rails -c /srv/www/nginx/app/current/config/unicorn_production.rb -E production -D |
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
gem install libv8 -v 3.11.8.13 -- --with-system-v8 |
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
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done |
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 __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
// usage | |
$('selector').click(__bind(this.handler, this)); | |
// or | |
this.handler = __bind(this.handler, this); | |
$('selector').click(this.handler, this); |
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
<script type='text/javascript'> | |
//<![CDATA[ | |
var d = ['wii', '3ds', 'dsi']; | |
var l = d.length; | |
for(var i = 0; i < l; i++) { | |
if (navigator.userAgent.toLowerCase().indexOf(d[i]) > -1) | |
location.href = 'wii'; // url | |
} | |
//]]> | |
</script> |