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
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: |
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
//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 |
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
{ | |
// 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", |
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
// 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] |
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
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 |
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
inputfilename = input('Enter name of input file to be read (Should be a csv): ') | |
outputfilename = input('Enter name of output file (Outputs a .txt file): ') | |
#Loading entire contents from file into a list. List is formatted like [Location, word phrase, location, word phrase] | |
file = open((inputfilename) , 'r') | |
ofile = open((outputfilename) , 'w') | |
for line in file: | |
line = line.strip().split('-') |
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
Real |