Skip to content

Instantly share code, notes, and snippets.

View ScottFreeCode's full-sized avatar
🖖
ScottFreeCode, programmer, cancels write code: interrupted by Real Life

Scott Santucci ScottFreeCode

🖖
ScottFreeCode, programmer, cancels write code: interrupted by Real Life
View GitHub Profile
@Avaq
Avaq / dangerous-promises.js
Last active October 12, 2021 04:13
Dangerous Promises
//
// utils
//
const thrush = x => f => f(x);
const indexBy = k => xs => xs.reduce((index, x) => {
if(index[x[k]] != null) index[x[k]].push(x);
else index[x[k]] = [x];
return index;
@tunniclm
tunniclm / Map_express_repositories.md
Last active September 8, 2016 04:01
Map express repositories

Investigation (non-exhaustive)

Express dependencies:

Module github org/user
array-flatten blakeembrey
escape-html component
merge-descriptors component
path-to-regexp component
@cletusw
cletusw / .eslintrc
Last active February 29, 2024 20:24
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names