- OS: NixOS (tough learning curve; recommend using Arch Linux)
- Window Manager: i3
- Menu Bar: i3bar
- Wifi: my wifi- commands (depends on
wpa_supplicant
anddhcpcd
) - Custom keyboard shortcuts: xbindkeys
- Email: neomutt + getmail + msmtp
- Terminal/Editor Font: Ubuntu Mono
- Terminal Emulator: termite
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 bash | |
perf record -e cycles:u -g -- node --perf-basic-prof $1 | |
perf script > perf-script.txt | |
cat perf-script.txt | flamegraph -t perf > perf-graph.svg | |
chromium perf-graph.svg |
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 bash | |
perf record -e cycles:u -g -- node --perf-basic-prof $1 | |
perf script > perf-script.txt | |
cat perf-script.txt | flamegraph -t perf > perf-graph.svg | |
chromium perf-graph.svg |
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 bash | |
perf record -e cycles:u -g -- node --perf-basic-prof $1 | |
perf script > perf-script.txt | |
cat perf-script.txt | flamegraph -t perf > perf-graph.svg | |
chromium perf-graph.svg |
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
foobar |
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
test |
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
function getOsmDocFromVersionId (osmdb, version, done) { | |
osmdb.get(version, function (err, node) { | |
if (err) done(err) | |
else done(null, getOsmDocFromHyperlogNode(node)) | |
}) | |
} | |
function getOsmDocFromHyperlogNode (node) { | |
if (node.value && node.v) return node.value.v // Returns the OSM document (has 'type', 'lat', 'lon', etc) | |
if (node.value && node.d) return null // This document is a deletion marker for an older document |
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
var hyperlog = require('./') | |
var level = require('level') | |
var through = require('through2') | |
var memdb = require('memdb') | |
var TopoSort = require('topo-sort'); | |
var dedupe = require('dedupe') | |
if (process.argv.length !== 4) { | |
console.error('USAGE: rebuild <LEVEL-DIR> <NEW-LEVEL-DIR>') | |
process.exit(1) |
https://build.particle.io/signup
unpackage the board and plug it into your laptop
particle's "getting started" guide: