This file contains hidden or 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
# Use 'C-a' as the prefix | |
unbind C-b | |
set-option -g prefix C-a | |
# Shell | |
set -g default-command /bin/zsh | |
set -g default-shell /bin/zsh | |
# I want to manage my own names with prefix-comma | |
set -g automatic-rename off |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>callee.arguments test</title> | |
</head> | |
<body> | |
<script src="https://rawgit.com/stacktracejs/stackframe/master/dist/stackframe.js"></script> | |
<script src="https://rawgit.com/stacktracejs/stack-generator/master/dist/stack-generator.js"></script> | |
<script> |
This file contains hidden or 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
// | |
// This program reads a sourcemap from stdin | |
// and replaces the "mappings" property with | |
// human readable content. It writes the output | |
// to stdout. | |
// | |
// 1. install the dependencies: | |
// npm i concat-stream vlq | |
// | |
// 2. optional: install jq for pretty printing json |
This file contains hidden or 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
// simple cache implementation provide a key that you're looking for and | |
// a function that will compute the value in case of a cache miss | |
async get (key, expensiveFn) { | |
let result = await storage.get(key) | |
if (result === undefined) { | |
result = await expensiveFn | |
await storage.save(result) | |
} | |
return result | |
} |
OlderNewer