Skip to content

Instantly share code, notes, and snippets.

View storborg's full-sized avatar

Scott Torborg storborg

View GitHub Profile
--- src/dumb/dumb_input.c.orig 2002-10-26 20:44:10.000000000 -0500
+++ src/dumb/dumb_input.c 2012-07-26 07:27:34.000000000 -0500
@@ -79,7 +79,7 @@
/* Read one line, including the newline, into s. Safely avoids buffer
* overruns (but that's kind of pointless because there are several
* other places where I'm not so careful). */
-static void getline(char *s)
+static void frotz_getline(char *s)
{
int c;
@storborg
storborg / example-cmd-wrapper.py
Last active August 29, 2015 14:03
How to use Pyramid to turn a Python function into a local "GUI" app
"""
The basic idea here is to wrap a Python function (in the case below, it is
``do_programming_crap()``) and make a basic GUI interface to call that
function.
Theoretically, it's much easier to create a packaged executable which is only
dependent on Pyramid vs. depending on something like PyGTK, WxWidgets, Kivy,
SDL, whatever.
"""
from pyweaving import Draft
from pyweaving.render import ImageRenderer
# 1-indexed
threading = [
4, 3,
6, 5,
8, 7,
1, 2, 3, 4, 5, 6, 7, 8,
2, 1,
import os.path
import requests
from PIL import Image
lowest_x = 928
highest_x = 1002
lowest_y = -1088
highest_y = -1069