I hereby claim:
- I am nkcmr on github.
- I am nkcmr (https://keybase.io/nkcmr) on keybase.
- I have a public key whose fingerprint is 82D8 9697 B0E4 8E64 4E78 259A 1423 50B6 4205 77DE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
goto() { | |
# create the shortcuts dir if necessary | |
if [ ! -d "$HOME/.shortcuts" ] ; then | |
mkdir -p "$HOME/.shortcuts" | |
fi | |
if [[ "$1" == "--list" ]] ; then | |
for f in "$HOME/.shortcuts/"* ; do | |
echo "$(basename "$f") -> $(tr -d '\n' < "$f")" |
package main | |
import ( | |
// "io/ioutil" | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"os/exec" |
'use strict' | |
const blacklist = [ | |
/analytics/, | |
/fullstory/, | |
/amplitude/, | |
/crashlytics\.com/, | |
/doubleclick\.net/, | |
/chartbeat\.(net|com)/, | |
/deepintent\.com/, |
<?php | |
define("BENCH_ITERATIONS", 1000); | |
$scenarios = []; | |
// scenario one | |
$scenarios['one'] = function () { | |
$start = microtime(true); | |
// do stuff in between the microtimes | |
return microtime(true) - $start; |
I hereby claim:
To claim this, I am signing this object:
<?php | |
function cephei($selector, $properties) { | |
$output = sprintf("%s {\n", $selector); | |
$children = []; | |
foreach ($properties as $property => $value) { | |
if (is_array($value)) { | |
$children[$property] = $value; | |
} else { | |
$output .= sprintf(" %s: %s;\n", $property, $value); |
<?php | |
date_default_timezone_set('UTC'); | |
$foo = '{"bar":{"$date":1358205756553},"pop":{"goes":{"err":{"$binary":"c3VyZS4="},"the":{"weasel":{"$date":1358205756553,"$tz":"America/New_York"}}}}}'; | |
class EJSON { | |
protected static $customTypes = []; | |
public static function type($marker, $decoder) { | |
if (!is_callable($decoder)) { |
// the service worker api entry point is navigator.serviceWorker | |
navigator.serviceWorker | |
.getRegistration() | |
.then(function (registration) { | |
// 'registration' is an instance of ServiceWorkerRegistration, see here: | |
// http://www.w3.org/TR/service-workers/#service-worker-registration-interface | |
if (!registration) { | |
// there is no service worker installed! | |
} else { | |
// there is one installed, and it is either 'waiting' |