I hereby claim:
- I am nwwells on github.
- I am nwwells (https://keybase.io/nwwells) on keybase.
- I have a public key whose fingerprint is B416 497C 71E3 488A 8BCA 9D30 8405 8ED9 C755 9CD1
To claim this, I am signing this object:
def progressBar = { max, closure -> | |
def template = "\r[%s] %s" | |
def progress = 0 | |
def percent = 0 | |
def barLength = 100 | |
def progressRatio = barLength / 100 | |
while (progress < max) { | |
def progressBuffer = new StringBuilder(); | |
def step = closure() |
from uuid import uuid1 | |
import random | |
import json | |
import time | |
import sys | |
import pymongo | |
import datetime | |
start = time.time() |
var $inputEl = this.$inputEl, //get a jquery element | |
$tmp = $('<span />'), //create a span | |
$body = $('body'); // get the body | |
$tmp.html(_.escape($inputEl.val())); | |
$body.append($tmp); | |
var theWidth = $tmp.width(); | |
$tmp.remove(); | |
var widthToSet = (14 + theWidth) + 'px'; | |
$inputEl.width(widthToSet); |
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
exportService.build { | |
format 'excel' | |
out response | |
filename 'facilities' | |
extension 'xls' | |
objects Contact.list(params) | |
parameters([title: 'Facilities']) | |
fields { | |
name ('Name') {obj, val -> obj?.facility?.name} | |
abbreviation ('Abbr') |
@function lookup ($targetKey, $map, $index:2, $default:'') { | |
@each $entry in $map { | |
@if length($entry) >= $index { | |
$key: nth($entry, 1); | |
$value: nth($entry, $index); | |
@if $key == $targetKey { | |
@return $value; | |
} | |
} | |
} |
// TODO - remove dependencies on jquery, underscore, require, and backbone. | |
define(function (require) { | |
'use strict'; | |
var _ = require('underscore'); | |
var Backbone = require('backbone'); | |
var transitionEnd = [ | |
'transitionend', | |
'webkitTransitionEnd', |
grunt.registerTask('delayed-livereload', 'Live reload after the node server has restarted.', function () { | |
var done = this.async(); | |
setTimeout(function () { | |
request.get('http://localhost:' + reloadPort + '/changed?files=' + files.join(','), function(err, res) { | |
var reloaded = !err && res.statusCode === 200; | |
if (reloaded) | |
grunt.log.ok('Delayed live reload successful.'); | |
else | |
grunt.log.error('Unable to make a delayed live reload.'); |
Verifying that +nwwells is my openname (Bitcoin username). https://onename.io/nwwells |
I hereby claim:
To claim this, I am signing this object: