Skip to content

Instantly share code, notes, and snippets.

Avatar
💾
Look a 3d printed save icon

oranges optimumtact

💾
Look a 3d printed save icon
View GitHub Profile
View gist:6029de439e4f7182298b8976e29c2f4f
The lizards originally hail from Tizira, in the Rizkalon system, though throughout their century and a half in the stars prior to meeting humanity they have spread over several planets and systems. This outward expansion was hindered by a lack of plasma and bluespace resources in their local area, stunting their technological advancement and therefore their development of effective FTL engines, first discovering them a mere two decades before the First Contact. Their technological level remains below that of their human rivals, due to a limited transfer of ideas between the two species.
Lizard society emphasises strict militarism and a rigid caste system. The caste system limits social mobility, separating society into distinct bands- however, as with many things in lizard society, enlistment in the military can change this. The military is intertwined deeply into lizard culture- all must serve a tour of mandatory service in the army after coming of age, it is customary for every citizen to be armed (typic
View list2text
// Concatenates a list of strings into a single string. A seperator may optionally be provided.
/proc/list2text(list/ls, sep)
if(ls.len <= 1) return ls.len ? ls[1] : ""
. = ""
var/l = ls.len
var/i = 0
if(sep)
#define S1 ls[++i]
View snippets
{
// Place your tgstation workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
View gist:1cafc750be67f526696ac277f7a9a0ed
//Get a list of toxin datum types
var/list/toxin_types = typesof(/datum/reagent/toxin)
//Filter the list of reagents in the mob reagent holder by the toxin types
var/list/toxin_reagents = typecache_filter_list(C.reagents.reagent_list, toxin_types)
//for each present reagent toxin, calculate a total
for(/datum/reagent/toxin/some_tox in toxin_reagents)
tox_amount = some_tox.volume
//if the amount is below our tolerance and non zero
if(tox_amount <= toxTolerance && tox_amount > 0)
//for each present tox reagent
View gist:ebd703c4ac7a5a5c5f266b4f6ccbf06f
import socket
import struct
import urllib.parse
def byond_export(host, port, string):
packet_id = b'\x83'
try:
sock = socket.create_connection((host, port))
except socket.error:
You can’t perform that action at this time.