I hereby claim:
- I am jasonhewison on github.
- I am jasonhewison (https://keybase.io/jasonhewison) on keybase.
- I have a public key ASBBt8B0VsI352KyZwR_hA1Til-LGzeQRZTW74MtK4PLbwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
__ansi_set_bold='1' | |
__ansi_set_dim='2' | |
__ansi_set_underlined='4' | |
__ansi_set_blink='5' | |
__ansi_set_inverted='7' | |
__ansi_set_hidden='8' | |
__ansi_reset_all='0' |
#!/usr/bin/env bash | |
BOLD_RED='\033[1;31m' | |
BOLD_GREEN='\033[1;32m' | |
COLOR_NC='\033[0m' | |
BOLD='\033[1m' | |
current_dir=`pwd` | |
makefile=${1:-"${current_dir}/Makefile"} | |
target=$2 |
#!/usr/bin/env bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
BLUE='\033[0;34m' | |
PURPLE='\033[0;35m' | |
COLOR_NC='\033[0m' | |
timeout=${1:-600} |
export default function curry(func, ...args) { | |
function inner(currentArgs, ...newArgs) { | |
const currentLength = currentArgs.length + newArgs.length; | |
if (currentLength >= func.length) { | |
return func(...currentArgs, ...newArgs); | |
} else { | |
return (...furtherArgs) => | |
inner([...currentArgs, ...newArgs], ...furtherArgs); | |
} |
const users = require('users'); | |
const emails = require('emails'); | |
module.exports = { | |
async login(req) { | |
const id = req.param('id'); | |
let user; | |
if(user = users.find(id)){ | |
const token = users.createResetToken(); | |
await emails.send(user, token); |
angular.module('mymodule') | |
.directive('input', function () { | |
'use strict'; | |
return { | |
restrict: 'E', | |
link: function (scope, element, attrs) { | |
if ((attrs.type + '').toLowerCase() !== 'text') { | |
return; | |
} | |
element[0].oninput = function () { |
var deferred = require('deferred-http-statuses'); | |
return deferred(function (resolve, reject) { | |
reject.badRequest(new Error('The request was bad.')); | |
}); |