Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
#!/bin/sh | |
# git config --global -e | |
# | |
# [diff] | |
# tool = winmerge | |
# [difftool "winmerge"] | |
# cmd = winmerge.sh $LOCAL $REMOTE $BASE | |
# [difftool] | |
# prompt = false | |
NULL="/dev/null" |
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
This playbook has been removed as it is now very outdated. |
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] | |
la = log --graph --oneline --decorate --all | |
lg = log --graph --oneline --decorate --all |
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
# | |
# J-LINK GDB SERVER initialization | |
# | |
# This connects to a GDB Server listening | |
# for commands on localhost at tcp port 2331 | |
target remote localhost:2331 | |
# Set JTAG speed to 30 kHz | |
# monitor speed 30 | |
# Set GDBServer to big endian | |
# monitor endian big |
Is IE8 your new IE6? Level the playing field with polyfills.
This script polyfills addEventListener, removeEventListener, and dispatchEvent. It is less than half a kilobyte minified and gzipped.
addEventListener registers a single event listener on a single target.
C-x h (M-x mark-whole-buffer)
C-M-\ (M-x indent-region)
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
// api/controllers/AuthController.js | |
var passport = require('passport'); | |
var AuthController = { | |
login: function (req,res) | |
{ | |
res.view(); | |
}, |
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
/* https://github.com/yields/case/blob/master/dist/Case.js */ | |
(function () { | |
var Case = {}; | |
if (typeof define === 'function' && define.amd) { | |
define(function(){ return Case; }); | |
} else if (typeof module !== 'undefined' && module.exports) { | |
module.exports = Case; | |
} else { | |
this.Case = Case; | |
} |
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 strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
OlderNewer