Skip to content

Instantly share code, notes, and snippets.

View timia2109's full-sized avatar
👋

Tim Ittermann timia2109

👋
View GitHub Profile
@timia2109
timia2109 / TurtleControll V3.0
Created June 18, 2014 12:58
TurtleControll V3.0
AppVersion = 3.0
AppName = "TurtleControll"
Slot = 1
cc = 1
paramAlt = 0
SettingPlace = 'TurtleControll.data'
Names4App = {"TC","tc","Controller","turtleer","TurtleCommander","upd8r","u8"}
Apps4Apps = {0,0,0,0,0,'upd8r.lua','upd8r.lua'}
CTRLMode = false
@timia2109
timia2109 / apidb.xml
Last active August 29, 2015 14:03
CC API List
<os>
<version use="()" desc="Returns the version of the OS the computer is running, which (for CraftOS) also contains the version of ComputerCraft." rtn="string version" />
<getComputerID use="()" desc="Returns the unique ID of this computer. os.computerID() also behaves exactly the same as os.getComputerID()." rtn="number id" />
<getComputerLabel use="()" desc="Returns the label of this computer. os.computerLabel() also behaves exactly the same as os.getComputerLabel()." rtn="string/nil label" />
<setComputerLabel use="(string/nil label)" desc="Set the label of this computer." rtn="nil" />
<run use="(table environment, string programPath [, string arguments])" desc="An advanced way of starting programs. A started program will have a given environment table which determines what functions it has available, as well as any variables it will be able to access by default. You may prefer to use the Shell (API) unless you need to do something special." rtn="boolean success" />
<loadAPI use="(string path)" des
local tArgs = { ... }
local fileMans = {}
local edit = 'edit' --or luaide ;D
local popup,workPath,saveFile
local xLen,yLen = term.getSize()
local function getFileMenu(isDir)
local waysActs = {
@timia2109
timia2109 / client.lua
Last active August 29, 2015 14:05
townOS Repo
if os.getComputerLabel() == 'townOS' or os.getComputerLabel() == "townOS_Bridge" then
shell.run('startup')
os.shutdown()
end
local allRequest,allowedRequests = true,{}
local townOS = true
local function doit(pA,pI)
local q = pA:sub(1,3)
@timia2109
timia2109 / KristAds.js
Last active April 11, 2016 10:48
Ads for Krist in HTML5 (using canvas) Info TBA
/* KristAds for HTML5 | Version 0.1 | by timia2109 */
function Pixel(text, tc, bc, sizeO) {
this.ttx = text;
this.tc = "#"+tc;
this.bc = "#"+bc;
this.size = sizeO;
}
Pixel.prototype.draw = function(canvas, x,y) {
canvas.fillStyle = this.bc;