I hereby claim:
- I am jpommerening on github.
- I am svckr (https://keybase.io/svckr) on keybase.
- I have a public key whose fingerprint is 963C 704B 80B2 EB67 7B3D 9264 4130 4D03 41D4 5A7C
To claim this, I am signing this object:
#!/bin/sh | |
URL="${1:-http://www.apple.com/itunes/store/counters/il6ark7ec.js}" | |
JSON=`curl "$URL" 2>/dev/null` | |
getField () { | |
echo "$JSON" | sed 's/.*"'$1'" *: *\([0-9]\+\)[}, ].*/\1/p;d' | |
} |
#!/usr/bin/env sh | |
set -e | |
tmpdir=`mktemp -d -t bundle` | |
file="package.json" | |
pushd "$tmpdir" | |
cat > "$file" <<EOF |
fun! Xclip() range | |
let l:_a = @a | |
exec a:firstline . ',' . a:lastline . 'yank a' | |
exec system('xclip', @a) | |
let @a = l:_a | |
endfun | |
" If you want to map this to Ctrl+c: | |
" vnoremap <C-c> :call Xclip()<cr> |
module.exports = function (grunt) { | |
function Explosion() {} | |
Explosion.prototype = new Error( 'Bam!' ); | |
function initFramework( emitter ) { | |
emitter.on( 'browser_complete', function() { | |
throw new Explosion(); | |
} ); | |
} |
;(function(window, document, Math, undefined) { | |
var ORIGIN_PATTERN = /\s*(-?[0-9.]+)(%?)\s+(-?[0-9.]+)(%?)\s*/; | |
var TRANSFORM_PATTERNS = [ | |
/(matrix)\(\s*(-?[0-9.]+)\s*,\s*(-?[0-9.]+)\s*,\s*(-?[0-9.]+)\s*,\s*(-?[0-9.]+)\s*,\s*(-?[0-9.]+)\s*,\s*(-?[0-9.]+)\s*\)/, | |
/(translate)\(\s*(-?[0-9.]+)\s*,\s*(-?[0-9.]+)\s*\)/, | |
/(rotate|skew[XY])\(\s*(-?[0-9.]+)(deg|g?rad|turn)\s*\)/, | |
/(scale)\(\s*(-?[0-9.]+)(%?)\s*(?:,\s*(-?[0-9.]+)(%?)\s*)\)/ | |
]; | |
var TRANSFORM_FUNCTIONS = { | |
matrix: function (v0, v1, v2, v3, dx, dy) { |
/** | |
* Create dead-simple LRU structure. | |
* @param {Number} size maximum number of items to be stored. | |
* @param {Object} [init] initial contents. | |
* @return {Object} the LRU object | |
*/ | |
function LRU( size, init ) { | |
var items = init || Object.create( null ); | |
var keys = Object.keys( items ); |
<style> | |
// Theming/Styling | |
.progress { | |
width: 100px; | |
height: 100px; | |
} | |
.progress .fill { | |
border: 8px solid orange; | |
width: calc(100% - 8px); |
I hereby claim:
To claim this, I am signing this object:
const PHI = 1.6180339887498948; | |
const params = { | |
'font-size': 1, | |
'cap-height': 1, | |
'x-height': 1 / PHI, | |
'baseline': 0, | |
'ascender-height': 1.1, | |
'descender-height': 0.3, |
LOGFILE=$HOME/procmail.log | |
VERBOSE=on | |
MAILDIR=/var/spool/imap/$LOGNAME | |
DEFAULT=./ | |
TOP=. | |
SP=" " | |
SPC="[$SP]" | |
NSPC="[^$SP]" |