Skip to content

Instantly share code, notes, and snippets.

View Muffindrake's full-sized avatar

Muffindrake

  • Some rogue planet
View GitHub Profile
@Muffindrake
Muffindrake / chemlist
Created October 2, 2020 01:20
chemlist space station 13
Dylovene: 40 Nitrogen, 40 Potassium, 40 Silicon
Inaprovaline: 40 Carbon, 40 Oxygen, 40 Sugar
KeloDerm: 40 Carbon, 40 Silicon, 20 Oxygen, 20 Phosphorous
Bicaridine: 20 Oxygen, 20 Sugar, 80 Carbon
Tricordrazine: 60 Inaprovaline, 60 Dylovene
Dexalin Plus: 4 Phoron, 80 Oxygen, 40 Carbon, 40 Iron
Peridaxon: 20 Phoron, 20 Oxygen, 10 Water, 10 Oxygen, 30 Sodium, 20 Carbon, 10 Sugar, 10 Oxygen, 20 Carbon
Tramadol: 30 Inaprovaline, 30 Nitrogen, 30 Water, 30 Ethanol, 30 Oxygen [Bottle Tramadol, resume], 30 Ethanol, 30 Oxygen
Spaceacillin: 60 Inaprovaline, 20 Oxygen, 20 Potassium, 20 Sugar
Hyronalin: 60 Dylovene, 60 Radium
@Muffindrake
Muffindrake / lol_lobby_profile.nim
Created March 4, 2020 09:19
A tiny program to parse the LeagueClient log and open profiles on various statistics sites for players in lobbies
#!/usr/bin/env -S nim c --run -d:release
import browsers
import json
import os
import strformat
import strutils
import times
import uri
var logpath : string
@Muffindrake
Muffindrake / lol_lobby_profile.d
Last active June 23, 2019 12:44
A small program that prints summoner profiles on opgg to stdout. Requires you to start it after you opened the league client. (currently assumes a Linux machine under Wine)
#!/usr/bin/env -S rdmd
import core.thread;
import std.algorithm.sorting;
import std.array : appender;
import std.datetime.systime;
import std.file;
import std.format;
import std.json;
import std.process;
diff --git a/poolf.c b/poolf.c
index 336e014..bc90b81 100644
--- a/poolf.c
+++ b/poolf.c
@@ -140,16 +140,8 @@ poolf_url(uint_least64_t pool, uint_least64_t page)
enum poolf_err
poolf_url_validate(const char url[static 1])
{
- CURLU *h;
- CURLUcode err;
@Muffindrake
Muffindrake / worm.c
Last active October 16, 2018 03:25
wormart (openssh)
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* prints a random art for a string, which must be given as first argument to
* the compiled program */
/* dimensions of the random art can be specified in the form 27x9 in the
* environment variable WORMART_DIMENSION and must be at least 5 in either