Skip to content

Instantly share code, notes, and snippets.

View nwwells's full-sized avatar

Nathan Wells nwwells

View GitHub Profile
@nwwells
nwwells / keybase.md
Created October 31, 2017 08:20
keybase.md

Keybase proof

I hereby claim:

  • I am nwwells on github.
  • I am nwwells (https://keybase.io/nwwells) on keybase.
  • I have a public key ASAhdGugYvvhmp2tIm8zhhadSgs3ZLqYXMvlQJFvO9ugrAo

To claim this, I am signing this object:

@nwwells
nwwells / giving_detail.sql
Created January 15, 2016 03:24
Purpose Portfolio Giving Reports
SELECT
client.name AS "Company",
ppuser."createdAt" AS "Account Sign-up Timestamp",
"firstName" AS "First Name",
"lastName" AS "Last Name",
"workEmail" AS "Email",
"confirmedAt" AS "Account Confirmation Timestamp",
SUM(engagement.amount) AS "Paycheck Donation Amt / Charity",
portfoliounit.name AS "Charity"
FROM client
define(function (require) {
'use strict';
var _ = require('underscore');
//functionName -> isCopy
var ARRAY_FUNCTIONS = {
'every': false,
'filter': false,
'forEach': false,
@nwwells
nwwells / patch.diff
Created October 27, 2015 19:15
Nathan's work at Symbiont.io
From 8522592042377b46150041e1f723071a9b9016a8 Mon Sep 17 00:00:00 2001
From: Nathan Wells <nwwells@gmail.com>
Date: Tue, 27 Oct 2015 12:06:34 -0400
Subject: [PATCH] renaming Content to content
---
components/record/index.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/record/index.js b/components/record/index.js
@nwwells
nwwells / rander.py
Created October 13, 2015 17:28
Coding challenge for Symbiont
#!/usr/bin/env python
import io
import os
import sys
import random
import atexit
fifo_path = "/tmp/rander.{0}".format(os.getpid())
@nwwells
nwwells / code combat 1.js
Last active October 12, 2015 20:43
A thing for Eko
// 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];
@nwwells
nwwells / DataController.js
Last active September 19, 2015 04:50
DataController and Test
var _ = require('lodash');
var async = require('async');
require('sails.io.js/sails.io');
module.exports = {
get: function (req, res, next) {
async.parallel({
@nwwells
nwwells / keybase.md
Created March 20, 2015 02:06
keybase.md

Keybase proof

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:

Verifying that +nwwells is my openname (Bitcoin username). https://onename.io/nwwells
@nwwells
nwwells / gist:9500088
Created March 12, 2014 03:11
LiveReload of Express Server
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.');