Skip to content

Instantly share code, notes, and snippets.

View benschac's full-sized avatar
🙃
Looking for a react native job

benjamin benschac

🙃
Looking for a react native job
View GitHub Profile
: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
@benschac
benschac / ben.svg
Created May 11, 2020 21:52
ben.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

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:

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;