- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const asyncCompose = (...fns) => input => | |
fns.reduceRight( | |
(chain, fn) => chain.then(fn), | |
Promise.resolve(input) | |
) | |
// import { authService } from 'authservice' | |
const authService = null | |
const getUser = async ({ auth = authService, ...dependencies }) => { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const curry = fn => (...args) => | |
args.length >= fn.length ? fn(...args) : curry(fn.bind(undefined, ...args)) | |
const always = a => b => a | |
const compose = (...fns) => args => fns.reduceRight((x, f) => f(x), args) | |
const getFunctor = x => | |
Object.freeze({ | |
value: x, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import requests | |
schema_registry_url = sys.argv[1] | |
topic = sys.argv[2] | |
schema_file = sys.argv[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set autochdir | |
set tags=tags;/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteRule ^intake.php$ controlpanel.php?category=Intake [NC,QSA] | |
RewriteRule ^new.php$ controlpanel.php?category=Intake [NC,QSA] | |
RewriteRule ^yes.php$ controlpanel.php?category=Yes [NC,QSA] | |
RewriteRule ^active.php$ controlpanel.php?category=Active [NC,QSA] | |
RewriteRule ^producers.php$ controlpanel.php?category=Producers [NC,QSA] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once dirname(__FILE__) . '/sdk-1.5.6.2/sdk.class.php'; | |
$dynamodb = new AmazonDynamoDB(); | |
// set closest region | |
$dynamodb->set_hostname("http://dynamodb.eu-west-1.amazonaws.com"); | |
// Name for your table | |
$table_name = "ObjectsTest"; | |
// This is how they suggest to initialize the table | |
do { |