Skip to content

Instantly share code, notes, and snippets.

View Henelik's full-sized avatar

Kelyn Crandall Henelik

View GitHub Profile
@Henelik
Henelik / qtrade_trade_scraper.py
Created January 26, 2022 23:31
Scrape your entire trade history from qTrade
from qtrade_client.api import QtradeAPI
import json
def scrape_trades(api):
trades = api.get('/v1/user/trades')["trades"]
while True:
new_trades = api.get('/v1/user/trades', newer_than=trades[-1]["id"])["trades"]
if len(new_trades) == 0:
@Henelik
Henelik / resume.json
Last active November 25, 2021 23:46
Kelyn Crandall's resume (2021)
{
"name": "Kelyn Crandall",
"languages": [
"Go",
"Python",
"Javascipt",
"C++",
"Java",
],
"skills": [
MILITARY_MAP = {("a", "A"): "Alpha",
("b", "B"): "Bravo",
("c", "C"): "Charlie",
("d", "D"): "Delta",
("e", "E"): "Echo",
("f", "F"): "Foxtrot",
("g", "G"): "Golf",
("h", "H"): "Hotel",
("i", "I"): "India",
("j", "J"): "Juliet",

Keybase proof

I hereby claim:

  • I am henelik on github.
  • I am kelync (https://keybase.io/kelync) on keybase.
  • I have a public key ASCRmhwd4oQvwZPKYL5i4JaphJ-0RLPsDzNdKytxc9xQOgo

To claim this, I am signing this object:

@Henelik
Henelik / auto_spritesheet.py
Created April 3, 2020 01:21
A small script which takes an image sequence (e.g. an animation from Blender) and compiles it into a single spritesheet
import cv2
from os import listdir
from os.path import isfile, join
import numpy as np
class imageSequence():
def __init__(self):
self.images = []
def importImages(self, path):
@Henelik
Henelik / LovecraftianInsults.py
Last active April 22, 2019 21:30
This small script generates insults inspired by H.P. Lovecraft's novels.
import tracery
from tracery.modifiers import base_english
rules = {
"origin": ["#imperativeVerb.capitalize#, you #multiAdj# #noun#.", "Your #femaleRelative# is #multiAdj.a# #noun#.", "Your #adjective# #femaleRelative# #thirdPersonVerb#.", "Your #femaleRelative# #thirdPersonVerb#, and is #multiAdj.a# #noun#.", "Your #femaleRelative# is #multiAdj.a# #noun#, and #thirdPersonVerb#.", "Your #femaleRelative# and #femaleRelative# are #multiAdj# #noun.s#."],
"femaleRelative": ["grandmother", "mother", "sister", "daughter", "niece", "wife"],
"imperativeVerb": ["be silent", "shut up", "silence", "hold your tongue", "shut your #adjective# face"],
"thirdPersonVerb": ["dances like #adjective.a# #noun#", "was born of #noun.a#", "would be better off as a #multiAdj.a# #noun#", "is consumed by #adjective# madness", "would be better married to a #multiAdj.a# #noun#"],