Skip to content

Instantly share code, notes, and snippets.

View maniart's full-sized avatar
📶

Mani Nilchiani maniart

📶
View GitHub Profile
@maniart
maniart / infinite-curry
Last active November 11, 2021 16:05
Infinite Curry
/*
Implement a function that allows for infinite cyrring, and can be used as such:
`_do(fn)(2)(3)(5)(8)(22)(230)(100)(10)();`
*/
function _do(fn) {
var args = []
, fn;
@maniart
maniart / Architizer Book Club.md
Created July 18, 2017 15:06
A list of suggested readings for Architizer Product / Engineering
### Keybase proof
I hereby claim:
* I am maniart on github.
* I am maniart (https://keybase.io/maniart) on keybase.
* I have a public key whose fingerprint is 57FF 03D1 463C 6687 A397 7905 0DE3 ED1F 0C21 382A
To claim this, I am signing this object:
@maniart
maniart / infinite recursion
Created June 17, 2016 20:07
infinite recursion
function haveGreatIdea() {
return
startProject()
.then(loseMotivation)
.then(abandonProject)
.then(haveGreatIdea)
.catch('Oh no. something seems to be actually working right.');
}
@maniart
maniart / fs-module-require-comma
Last active August 29, 2015 14:14
Comma separated `fs` module require in Browserify
// Will parse OK
var fs = require('fs');
var $ = require('jquery')(window);
// Will NOT parse
var fs = require('fs'),
$ = require('jquery')(window);
// Also documented here: https://github.com/substack/node-browserify/issues/950