Skip to content

Instantly share code, notes, and snippets.

View overengineered's full-sized avatar

Juozas Kontvainis overengineered

View GitHub Profile
@ericelliott
ericelliott / defaults-overrides.md
Last active May 7, 2023 13:52
ES6 defaults / overrides pattern

ES6 Defaults / Overrides Pattern

Combine default parameters and destructuring for a compact version of the defaults / overrides pattern.

function foo ({
    bar = 'no',
    baz = 'works!'
  } = {}) {
@sirex
sirex / propernames.py
Last active August 29, 2015 14:11
lmdb proper name parser
#!/usr/bin/env python3
"""
LMDB parser and proper name filter.
This script uses LMDB database [1] to extract all proper names.
[1] http://donelaitis.vdu.lt/~vytas/lmdb/