I hereby claim:
- I am benschac on github.
- I am benschac (https://keybase.io/benschac) on keybase.
- I have a public key ASAVg8mvmT0myT5ftMHxHvlQCjLHFRkujr-w2Yo-yXgydQo
To claim this, I am signing this object:
:root { | |
/* TODO -- Use postCSS to get pow() function */ | |
--font-size: min(max(1rem, 4vw), 22px); | |
--ratio: 1.5; | |
--line-height-small: calc(var(--ratio) * .7); | |
--measure: 60ch; | |
--s-5: calc(var(--s-4) / var(--ratio)); | |
--s-4: calc(var(--s-3) / var(--ratio)); | |
--s-3: calc(var(--s-2) / var(--ratio)); | |
--s-2: calc(var(--s-1) / var(--ratio)); |
[alias] | |
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
aa = add -A . | |
cm = commit -m | |
gr = grep -Ii | |
merged = branch --merged | |
st = status |
I hereby claim:
To claim this, I am signing this object:
FIRST, get the following set up:
These should be the full commands to install (assuming you're using bash and not ZSH):
pyenv
brew install pyenv
function arrayToList(arr) { | |
let list; | |
for(let i = arr.length; i >= 0; i--) { | |
list = {value: arr[i], rest: list}; | |
} | |
return list; | |
} | |
console.log(arrayToList([1,2,3])); |
const rs = require('../../mockUser'), | |
checkMaxLiftInput = require('./index.js') | |
; | |
describe('checkMaxLiftInput rejection', () => { | |
it('should reject values that arent numbers', () => { | |
expect(checkMaxLiftInput('benajamin')).toBe('tryagainmaxinputvalue'); | |
}); | |
it('should reject negative numbers', () => { |
const _ = require('lodash'); | |
/** | |
* ========================================================= | |
* | |
* MOCK USER DATA & DEXTER METHODS | |
* | |
* ========================================================= | |
*/ | |
const users = [ |
const rs = require('../../mockUser'), | |
_ = require('lodash') | |
; | |
/** | |
* | |
*/ | |
function boilerplate() { | |
/** | |
* Start RiveScript | Boiler Plate |
http://www.drdobbs.com/open-source/currying-and-partial-functions-in-javasc/231001821?pgno=2 | |
- Recursively call the resolver fn with fn arguments until arity is met. Once that happens | |
pass the enclosed arguments as an array to .apply | |
/** | |
* | |
* @param {function} fn | |
*/ | |
function curry(fn) { | |
const arity = fn.length; |