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:
// 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:
var _ = require('lodash'); | |
var async = require('async'); | |
require('sails.io.js/sails.io'); | |
module.exports = { | |
get: function (req, res, next) { | |
async.parallel({ |
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() |
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') |
// Defeat the enemy hero in under three minutes. | |
this.buildArmy = function() { | |
// Your hero can summon and command allied troops. | |
var buildOrder = [ | |
"soldier", | |
"soldier", | |
"archer", | |
]; // "archer", "artillery", "arrow-tower" | |
var type = buildOrder[this.built.length % buildOrder.length]; |