Skip to content

Instantly share code, notes, and snippets.

a80sappleiibbs.ddns.net
mode character
import sys
def command1(option1="Undefined", option2="Undefined"):
print("This is command1 with " + option1 + " and " + option2)
def command2(option1="Undefined", option2="Undefined"):
print("This is command2 with " + option1 + " and " + option2)
commands = {'cmd1': command1, 'cmd2': command2}
from datetime import datetime
import pygame
from pygame.mixer import Sound
from ui import colours
from ui.widgets.background import LcarsBackgroundImage, LcarsImage
from ui.widgets.gifimage import LcarsGifImage
from ui.widgets.lcars_widgets import *
from ui.widgets.screen import LcarsScreen
from ui.widgets.sprite import LcarsMoveToMouse
import pickle
import json
import urllib
import os
import time
hourAgo = time.time() - 3600
def getWeather():
if os.path.getmtime("weather.pkl") < hourAgo:
--[[
Simple BigReactors Reactor Control program
Usage:
Reactor producing RF:
bigreactors-control [-s] [turnOn [, turnOff] ]
-s makes the program not print anything to the screen; will automatically enable this option if there is no screen and GPU available
Optional arguments are turnOn and turnOff, allowing you to specify when to turn the reactor on and when to turn it off. Default values are 0.1 and 0.9
If you have turbines connected to the computer and the reactor is in steam-producing mode, it will automatically detect that.
In turbine mode, it will try to keep the turbines at a certain speed.
bigreactors-control [-s] [-b] [desiredSpeed [, acceptedSpeed] ]