Skip to content

Instantly share code, notes, and snippets.

View WardPearce's full-sized avatar
🟣
They/Them

Ward WardPearce

🟣
They/Them
View GitHub Profile
import sys
import json
import psutil
from os import path
from platform import system
PLATFORM = system()
CHANNELS = [
{
"match_id": "d3a0b65c-3e0a-4181-912a-05d013208f45",
"league_id": "nloce",
"demo_status": 0,
"demo_url": null,
"timestamp": "02/18/2021-20:34:40",
"status": 2,
"map": "de_mirage",
"connect": {
"ip": "139.99.209.229",
@WardPearce
WardPearce / SteamID Converter.py
Last active September 19, 2019 22:53
Easily converts SteamID64 or 32 into both 32 & 64.
def steamid_convert(given_id):
steam64id = 76561197960265728
if "STEAM_0" in given_id or "STEAM_1" in given_id:
id_split = given_id.split(":")
steam64id += int(id_split[2]) * 2
if id_split[1] == "1":
steam64id += 1
return_data = [given_id.replace("STEAM_0", "STEAM_1"), steam64id]
elif given_id.isdigit() and len(given_id) == 17:
{
"en": {
"menu-title": "Shopping list options.",
"option-1": "A) Add an item.",
"option-1-key": "a",
"option-2": "R) Remove an item by its element number.",
"option-2-key": "r",
"option-3": "T) Display the total number of items in the list.",
"option-3-key": "t",
"option-4": "L) List all the items.",