Skip to content

Instantly share code, notes, and snippets.

View errnoh's full-sized avatar

Erno Hopearuoho errnoh

View GitHub Profile
@touilleMan
touilleMan / SimpleHTTPServerWithUpload.py
Last active May 4, 2024 01:08 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/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
"""
@vrthra
vrthra / tile.rc
Created May 8, 2012 04:11
tiling script for rio
#!/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
@evilpie
evilpie / disassembler.js
Created April 4, 2012 11:51
Disassembler for Notch's 'DCPU-16'
/* 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) {
@nsf
nsf / gist:1576733
Created January 8, 2012 01:21
Gocode integration guide
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.