This file contains 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
// ASYNC task macros and definitions | |
#define TASK_RESULT_UNDEFINED "__task_undefined" | |
/datum/task_lock/proc/wait() | |
while(TRUE) | |
sleep(100000) | |
/task | |
var/returnResult = TASK_RESULT_UNDEFINED |
This file contains 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
#define ASYNC_DEFAULT "snowflake__thing_should_dnot_bebused" | |
#define istask(t) istype(t, /task) | |
/task | |
parent_type = /datum | |
VAR_PRIVATE/object_src = ASYNC_DEFAULT | |
VAR_PRIVATE/result = ASYNC_DEFAULT | |
VAR_PRIVATE/is_complete = FALSE | |
var/error = null |
This file contains 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
Term.cursorX = 0; | |
Term.cursorY = 0; | |
let maxValue = Term.width * (Term.height) - 1; | |
for (var i = 0; i < maxValue; i++) { | |
let r = (i % Term.width) / Term.width | |
Term.setBackground(r, i / maxValue, (i % 21)/21) | |
Term.write(" "); | |
} |
This file contains 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 random import randint | |
s = "Hello World!" | |
ob = "000000!%*£?#*" #Obfucation chars | |
new_s = "" | |
for c in s: | |
cc = ob[randint(1,len(ob) - 1)] | |
if (cc == "0" or c == " " or c == "."): | |
new_s += c | |
else: | |
new_s += cc |