This file contains hidden or 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
# Worlds are specified as keys in the pre-defined "render" dictionary | |
# | |
# all options about rendering a world go in a configuration dictionary as | |
# values of this render dict | |
render["world"] = { | |
"rendermodes": ["smooth-lighting", "smooth-night"], | |
"north-direction": ["upper-left"], | |
} |
This file contains hidden or 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
gistfile1.o: In function `main': | |
gistfile1.c:(.text+0x73): undefined reference to `rs_region_open' | |
gistfile1.c:(.text+0xa9): undefined reference to `rs_region_get_chunk_timestamp' | |
gistfile1.c:(.text+0xcb): undefined reference to `rs_region_get_chunk_length' | |
gistfile1.c:(.text+0xed): undefined reference to `rs_nbt_parse_from_region' | |
gistfile1.c:(.text+0xfd): undefined reference to `rs_nbt_get_root' | |
gistfile1.c:(.text+0x112): undefined reference to `rs_tag_compound_get' | |
gistfile1.c:(.text+0x127): undefined reference to `rs_tag_compound_get' | |
gistfile1.c:(.text+0x137): undefined reference to `rs_tag_list_get_length' | |
gistfile1.c:(.text+0x14d): undefined reference to `rs_tag_list_iterator_init' |
This file contains hidden or 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
from __future__ import division | |
import collections | |
from StringIO import StringIO | |
import sys | |
import random | |
def analyze(string, k): | |
# Maps strings of length k to dictionaries of charcter to frequency counts | |
markovchain = collections.defaultdict(lambda: collections.defaultdict(int)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
from __future__ import division | |
import sys | |
import pty | |
import os | |
import subprocess | |
import termios | |
import fcntl |
This file contains hidden or 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 | |
import sys | |
import pty | |
import os | |
import subprocess | |
import string | |
""" | |
An example script to show how Python's pty module can be used to capture the |
NewerOlder