Skip to content

Instantly share code, notes, and snippets.

@whutch
whutch / hidespace.py
Last active February 12, 2018 23:42
Hide/find messages hidden in text indentation.
#!/usr/bin/env python
"""Hide/find messages hidden in text indentation."""
import argparse
from collections import deque
import os
from os.path import exists
# Command line parsing stuff.
PARSER = argparse.ArgumentParser(description="Hide/find messages hidden in text indentation.")
@whutch
whutch / accuweather.py
Created March 18, 2016 22:27
Game module for Clockwork that demonstrates terminal manipulation possibilities.
# -*- coding: utf-8 -*-
"""Weather monitor; example of client terminal manipulation."""
# Part of Clockwork MUD Server (https://github.com/whutch/cwmud)
# :copyright: (c) 2008 - 2016 Will Hutcheson
# :license: MIT (https://github.com/whutch/cwmud/blob/master/LICENSE.txt)
from ... import settings
from ...contrib.weather.patterns import WeatherPattern
from ...contrib.worldgen.maps import _render_map_data, render_map_from_layers
from ...core.events import EVENTS