- keybase.io/errnoh
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 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 | |
""" | |
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
#!/bin/rc | |
# Usage: | |
# First save the current windows | |
# ./tile.rc save >saved.s | |
# Next switch to tall | |
# ./tile.rc tall |tee tall.s |rc | |
# Can go back if you want | |
# cat saved.s |rc | |
# dont pee in the pool |
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
/* See: http://0x10c.com/doc/dcpu-16.txt */ | |
function hex(n) { | |
return '0x' + n.toString(16); | |
} | |
function disassemble (code) { | |
var PC = 0; | |
var operand = function (bits) { |
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
Basically you can do that by simple running an external command from | |
your editor. | |
Autocompletion command needs the following information from your editor: | |
1. Current file buffer (possible unsaved). | |
2. Cursor position (offset in bytes from the beginning of the buffer). | |
3. The full file name of the currently edited buffer. It can be | |
relative to the current/working directory. |