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 delay = (millis) => | |
new Promise((resolve, reject) => { | |
setTimeout((_) => resolve(), millis); | |
}); | |
async function postData(url = '', data = {}) { | |
// Default options are marked with * | |
const response = await fetch(url, { | |
method: 'POST', // *GET, POST, PUT, DELETE, etc. | |
mode: 'cors', // no-cors, *cors, same-origin |
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
# Inspirations: | |
# http://mutelight.org/practical-tmux | |
# http://zanshin.net/2013/09/05/my-tmux-configuration/ | |
# http://files.floriancrouzat.net/dotfiles/.tmux.conf | |
# http://stackoverflow.com/questions/9628435/tmux-status-bar-configuration | |
# https://github.com/Lokaltog/powerline | |
# https://github.com/remiprev/teamocil | |
# http://superuser.com/questions/74492/whats-the-best-prefix-escape-sequence-for-screen-or-tmux | |
# http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/ | |
# |
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 | |
# skeleton from http://kmkeen.com/socketserver/2009-04-03-13-45-57-003.html | |
import socketserver, subprocess, sys | |
from threading import Thread | |
from pprint import pprint | |
import json | |
my_unix_command = ['bc'] |