Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # Requires httr fork available here: | |
| # https://github.com/ctrombley/httr | |
| library(httr) | |
| library(httpuv) | |
| endpoint <- oauth_endpoint("get_request_token", "request_auth", "get_token", | |
| base_url = "https://api.login.yahoo.com/oauth2") | |
| app <- oauth_app("yahoo", |
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
| CPP_FILES = $(wildcard *.markdown) | |
| OBJ_FILES = $(patsubst %.markdown,%.pdf,$(CPP_FILES)) | |
| %.pdf: %.markdown | |
| pandoc -V geometry:margin=1in -S -o $@ $(patsubst %.pdf,%.markdown,$@) | |
| all: $(OBJ_FILES) | |
| clean: |
| import shlex | |
| import subprocess | |
| import sys | |
| def run_cmd(cmd, callback=None, watch=False): | |
| """Runs the given command and gathers the output. | |
| If a callback is provided, then the output is sent to it, otherwise it | |
| is just returned. |