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
import sys | |
import tty | |
import termios | |
import os | |
s = os.get_terminal_size() | |
ROWS = s.lines | |
COLS = s.columns | |
print('\n'*ROWS) |
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
SIZE_X = 20 | |
SIZE_Y = 20 | |
TOP_Z = 0.750 | |
CUTTER_DIAMETER = 0.750 | |
#This is just some misc setup stuff | |
from decimal import Decimal | |
def drange(start, stop, step): | |
value = Decimal(start) |
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
for x in range(-400,400,100): | |
for y in range(-400,400,100): | |
box(x,y,80,45) | |
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
# vim:encoding=utf-8:ts=2:sw=2:expandtab | |
from AppStruct.Util import * | |
from AppStruct.Web.Util import * | |
import AppStruct | |
import AppStruct.Util | |
import AppStruct.Web.Util | |
import FileStruct |
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
# vim:encoding=utf-8:ts=2:sw=2:expandtab | |
from Project import * | |
from AppStruct.Base.V1 import * | |
from AppStruct.Security import SHA1, RandomHex | |
############################################################################### | |
class Admin(metaclass=MetaRecord): |
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
# vim:encoding=utf-8:ts=2:sw=2:expandtab | |
from AppCove import * | |
import AppCove.Network | |
############################################################################### | |
@Expose |
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
############################################################################### | |
class SessionDictProxy(): | |
''' | |
Emulates an aadict() object, but all has/get/set/del operations convert to/from | |
json objects stored in Redis. | |
''' | |
def __init__(self, Token, RedisKey): | |
object.__setattr__(self, '_Token', Token) |
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
FlagType | |
An extended `int` type which implements a very convenient mechansim for | |
defining flags and operating on them. | |
One of the primary uses is the convenient syntax: | |
flags = +front -back +side -top | |
Calling the unary operator (__pos__, __neg__) by prefixing one of the |
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
# vim:encoding=utf-8:ts=2:sw=2:expandtab | |
from AppStruct.Util import * | |
from AppStruct.WSGI.Util import ML | |
from HomeSchool import App | |
from datetime import date | |
from . import Student | |
from . import Subject |
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
# vim:encoding=utf-8:ts=2:sw=2:expandtab | |
from AppStruct.Util import * | |
from AppStruct.WSGI.Util import ML | |
from HomeSchool import App | |
from datetime import date | |
from . import Student | |
from . import Subject |
NewerOlder