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
function Edit-Profile { | |
code $profile.CurrentUserAllHosts | |
} | |
function Edit-GitConfig { | |
code $HOME/.gitconfig | |
} | |
Function Touch-File | |
{ |
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 MicroEvent = function(){}; | |
MicroEvent.prototype = { | |
bind : function(event, fct){ | |
this._events = this._events || {}; | |
this._events[event] = this._events[event] || []; | |
this._events[event].push(fct); | |
}, | |
once: function(event, fct){ | |
var wrapped = function() { | |
this.unbind(event, fct); |
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 ourl = (function () { | |
function ourl(url) { | |
url = url || window.location.href; | |
return new ObjectifiedUrl(url); | |
}; | |
ourl.parse = parseUrl; | |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'install', | |
1 verbose cli 'grunt-contrib-testem' ] | |
2 info using npm@1.3.11 | |
3 info using node@v0.10.21 | |
4 verbose node symlink C:\Program Files\nodejs\\node.exe | |
5 warn package.json borked@0.0.1 No repository field. | |
6 warn package.json borked@0.0.1 No README data |
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 | |
if [ -z "$1" ]; then | |
echo "Usage: $0 profile_name" | |
exit 1 | |
fi | |
PROFILE_NAME="$1" | |
GOOGLE_CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" | |
USER_DIR="/Users/$USER/Library/Application Support/Google/Chrome/${PROFILE_NAME}" | |
exec "$GOOGLE_CHROME" \ |
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 Bunch = (function () { | |
// internals | |
var defaults = { | |
IDENTITY_FIELD: 'id', | |
SEQUENCE_START: 0, | |
hasIdentity: function hasIdentity( item ) { | |
return item[ this._identityField ]; | |
}, | |
ensureIdentity: function ensureIdentity( item ) { |
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
{ | |
"version": "1.0", | |
"title": "A dirt simple example of a BlankStage story", | |
"summary": "This really is nothing but a collection of links as chapters. A proper story would most likely take you through some chapters that have a linear (or user-directed) set of actions.", | |
"synopsis": "", | |
"copyright": "Copyright © 2012 Me/You/Who?", | |
"license": "DRMed -- OMG!!!", | |
"chapters": [ | |
{ | |
"title": "This is chapter 1.", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="" /> | |
<script type="text/javascript" src=""></script> | |
</head> | |
<body> | |
<div> | |
<p>Hello</p> |
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
# DRY for os.path.join | |
import os | |
j = lambda filename: os.path.join('/my/base/path', filename) |
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
[tox] | |
envlist = py26,py27 | |
[testenv] | |
commands = konira -t -d | |
[testenv:py26] | |
basepython=C:\env\python26\python.exe | |
[testenv:py27] |
NewerOlder