If the files in your filesystem looked like this
lib
underscore.js
backbone.js
backbone.marionette.js
backbone.wreqr.js
backbone.babysitter.js
"use strict"; | |
/** | |
* @author geoff | |
*/ | |
var Marshal = (function() { | |
var debug = false; | |
var symbols; | |
var marshal_major = 4, marshal_minor = 8; |
'use strict' | |
let express = require('express') | |
let axios = require('axios') | |
let server | |
function once (cb) { | |
let app = express() | |
app.get('/foo', (req, res, next) => { |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
function on(obj, type, fn) { | |
if (obj.attachEvent) { | |
obj['e'+type+fn] = fn; | |
obj[type+fn] = function(){ obj['e'+type+fn]( window.event ); }; | |
obj.attachEvent( 'on'+type, obj[type+fn] ); | |
} else { | |
obj.addEventListener( type, fn, false ); | |
} | |
} | |
function off(obj, type, fn) { |
// require something | |
var _ = require("lodash"); | |
var Spinner = require("spin"); | |
new Spinner({color:'#333', lines: 12}).spin(document.body); |
ffmpeg -ss 00:00:00.000 -i recording.mov -pix_fmt rgb24 -r 10 -t 00:00:10.000 recording.gif | |
convert -layers Optimize recording.gif recording.gif |
If the files in your filesystem looked like this
lib
underscore.js
backbone.js
backbone.marionette.js
backbone.wreqr.js
backbone.babysitter.js
// example | |
Marshal.load(new Buffer("COOKIE_STRING", 'base64')); |
# add this to your ~/.bash_profile or similar | |
# say you're on a branch `my-feature` and | |
# you merge the PR for that branch on GitHub | |
# you can now execute `gu` to run the following | |
gu () { | |
branch=$(git symbolic-ref --short HEAD) | |
git checkout master | |
git pull |
var webpack = require('webpack') | |
var webpackConfig = require('./webpack.config') | |
module.exports = function (config) { | |
// prep your webpack config for karma | |
delete webpackConfig.entry | |
webpackConfig.devtool = 'cheap-inline-source-map' | |
// karma --grep | |
if (config.grep) { |