I hereby claim:
- I am linuxbozo on github.
- I am linuxbozo (https://keybase.io/linuxbozo) on keybase.
- I have a public key ASCpZ2hulsPfAEhi0PL5azhmyVQZRiRzHA98A1pr5z7hEgo
To claim this, I am signing this object:
var shmock = require('shmock'); | |
var mockAPI = shmock(10000); | |
mockAPI.get('/foo').reply(200, 'bar'); | |
mockAPI.get('/isChildFI/2013/1').reply(200, JSON.stringify({ result: true })); |
var engine = require('../engine'), | |
rewiredEngine = rewire('../engine'), | |
http = require('http'), | |
shmock = require('shmock'), | |
port = '10000', | |
mockAPIURL = 'http://localhost:'+port, | |
mockYEAR = '2013'; | |
describe('Engine', function() { | |
var mockAPI; |
HMDAEngine.isChildFI = function(respondentID) { | |
var url = HMDAEngine.getAPIURL() + '/isChildFI/' + HMDAEngine.getRuleYear() + '/' + respondentID; | |
var response = request('GET', url); | |
var body = JSON.parse(response.getBody('utf8')); | |
return body.result; | |
}; |
{ | |
"id": "Q031", | |
"description": "If property type = 3, then the total number of multifamily applications should be < 200.", | |
"explanation": "Number of reported multifamily applications is ≥ 200; Verify.", | |
"rule": { | |
"property": "hmdaFile", | |
"condition": "call", | |
"function": "compareNumEntriesSingle", | |
"args": [ | |
"hmdaFile.loanApplicationRegisters", |
#!/bin/bash | |
# Author: Robbie Van Gorkom | |
# Created: 2012-05-17 | |
# Modified: 2016-02-16 M. Adam Kendall | |
# | |
# This script will convert a directory in a git repository to a repository | |
# of it very own. | |
# | |
# set the variables. |
I hereby claim:
To claim this, I am signing this object:
def scrubMicrosoftChars(scrubbedString="", charset='utf-8'): | |
""" Repair Microsoft Special Characters by mapping to standard characters """ | |
if not scrubbedString: | |
return "" | |
charset = charset.lower() | |
scrubbable = ['iso-8859-1', 'windows-1252'] | |
if charset not in scrubbable: | |
# since it's not a "friendly" charset, don't scrub, just return it | |
return scrubbedString |
#!/bin/bash | |
set -e | |
BOSH_DEPLOYMENT_PATH="../../bosh-deployment" | |
# clean up | |
(cd "$BOSH_DEPLOYMENT_PATH" && git pull) | |
rm -rf state.json | |
for uuid in $(VBoxManage list vms|grep -E ^\"sc- | awk '{print $2}' | sed 's/{//' | sed 's/}//'); do |
{ | |
"meta": { | |
"theme": "kendall" | |
}, | |
"basics": { | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"label": "Engineering Leadership", | |
"name": "M. Adam Kendall", | |
"email": "[email protected]", | |
"image": "https://avatars2.githubusercontent.com/u/723420?v=2&s=460", |