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
a80sappleiibbs.ddns.net | |
mode character |
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 | |
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} |
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 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 |
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 pickle | |
import json | |
import urllib | |
import os | |
import time | |
hourAgo = time.time() - 3600 | |
def getWeather(): | |
if os.path.getmtime("weather.pkl") < hourAgo: |
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
--[[ | |
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] ] |
OlderNewer