I hereby claim:
- I am eneuhauser on github.
- I am eneuhauser (https://keybase.io/eneuhauser) on keybase.
- I have a public key ASDy9ZIQBnHo8XtlL1jP0nTJ1yiJxA3St3LWEako4qzxiwo
To claim this, I am signing this object:
function parse_git_deleted { | |
[[ $(git status 2> /dev/null | grep deleted:) != '' ]] && echo '-' | |
} | |
function parse_git_added { | |
[[ $(git status 2> /dev/null | grep 'Untracked files:') != '' ]] && echo '+' | |
} | |
function parse_git_modified { | |
[[ $(git status 2> /dev/null | grep modified:) != '' ]] && echo '*' | |
} | |
function parse_git_dirty { |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
skillService: Ember.inject.service('skills'), | |
init: function() { | |
this._super.apply(this, arguments); | |
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
actions: { | |
foo() { | |
alert("I'm the application route"); | |
} | |
} | |
import { Adapter } from 'ember-pouch'; | |
import PouchDB from 'pouchdb'; | |
export default Adapter.extend({ | |
coalesceFindRequests: true, | |
init() { | |
this._super(...arguments); |
/** | |
* Executing the following in Chrome's console while viewing an organization's | |
* repositories will list available wiki pages for the those repostories. If | |
* paginated, you will have to repeat for each page. | |
*/ | |
function listWikis() { | |
return Promise.all($('li.source h3 a').map(src => { | |
const home = src.href + '/wiki'; | |
return new Promise(function(resolve) { | |
fetch(home, { credentials: 'include' }).then(r => r.text().then(t => { |
function toTable(data, headings=[], cellspacing=2, cellpadding=1) { | |
const widths = data.concat([headings]).reduce((widths, r) => r.reduce((ws, c, i) => { | |
let cur = ws[i] || 0, w = String(c).length; | |
ws[i] = w > cur ? w : cur; | |
return ws; | |
}, widths), []).map(w => w + cellpadding * 2), cs = center('|', cellspacing + 1); | |
if(headings.length) { | |
console.log(headings.map((h, i) => pad(center(h, widths[i]))).join(cs)); | |
console.log(widths.map(w => '-'.repeat(w+cellpadding*2)).join(cs)); |
#! /bin/bash | |
PROC=$1 | |
if [[ "$#" -lt 2 ]]; then | |
echo "Requires at least 2 arguments, the process name and at least one port number." | |
exit 1 | |
fi | |
for ip in "$@" |
I hereby claim:
To claim this, I am signing this object: