I hereby claim:
- I am neocotic on github.
- I am neocotic (https://keybase.io/neocotic) on keybase.
- I have a public key ASCBnPGu0RSGV7iC9E2ys512JVeY1l19TBuJZK2z_awG0go
To claim this, I am signing this object:
/** | |
* Generates sample data based on the `options` provided and then calculates the average based on the sample count. | |
* | |
* @param {Object} options - The options to be used. | |
* @param {function(): *} options.generator - The function to be used to generate data per round. | |
* @param {number} [options.roundsPerSample=1000] - The number of rounds in which `options.generator` is to be called per sampling. | |
* @param {function(value: *): boolean} options.sampler - The function to be used to filter samples from the generated data. | |
* @param {number} [options.samples=100] - The number of times samples should be run. | |
* @return {number} The calculated average. | |
*/ |
[alias] | |
co = checkout | |
cob = "!f() { git checkout -B $1; }; f" | |
br = branch | |
ci = commit | |
sh = stash | |
st = status | |
unstage = reset HEAD -- | |
last = log -1 HEAD | |
undo = checkout -- . |
I hereby claim:
To claim this, I am signing this object:
# Override bash prompt depending on colors being enabled and if you are root | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
if [ $(id -u) -eq 0 ]; then | |
PS1=$'\u@\h:\W\[$(tput setaf 2)\]$(__git_ps1 " (%s)")\[$(tput sgr0)\] \[$(tput setaf 1)\]\xCE\xBB\[$(tput sgr0)\] ' | |
else | |
PS1=$'\u@\h:\W\[$(tput setaf 2)\]$(__git_ps1 " (%s)")\[$(tput sgr0)\] \xCE\xBB ' | |
fi | |
fi |
(function ($) { | |
var html5Events = [ | |
'afterprint', | |
'beforeprint', | |
'canplay', | |
'canplaythrough', | |
'contextmenu', | |
'drag', | |
'dragend', |
# (c) 2012 [neocotic](http://github.com/neocotic) | |
# Freely distributable under the MIT license. | |
# Private constants | |
# ----------------- | |
# Code for extension's analytics account. | |
ACCOUNT = 'UA-12345678-1' | |
# Source URL of the analytics script. | |
SOURCE = 'https://ssl.google-analytics.com/ga.js' |
// Simple JSONP support | |
// (c) 2011 [neocotic](http://github.com/neocotic) | |
// Released under the MIT License | |
// http://en.wikipedia.org/wiki/MIT_License | |
(function (root) { | |
var previousJSONP = root.JSONP; | |
root.JSONP = { | |
__callbacks : {}, | |
get : function (url, callback, context) { | |
var |
// JavaScript padEven | |
// (c) 2011 [neocotic](http://github.com/neocotic) | |
// Released under the MIT License | |
// http://en.wikipedia.org/wiki/MIT_License | |
function padEven(str, delim, maxLineLen) { | |
delim = delim || ','; | |
maxLineLen = maxLineLen || 80; | |
str = str || ''; | |
var | |
arr = [], |