Skip to content

Instantly share code, notes, and snippets.

View archangelic's full-sized avatar
🏳️‍⚧️
Trans Rights Are Human Rights

Mal Hancock archangelic

🏳️‍⚧️
Trans Rights Are Human Rights
View GitHub Profile
@archangelic
archangelic / redshirts.md
Last active May 28, 2019 01:57
Red Shirts - a silly game inspired by adventure skeletons

Red Shirts

you were doomed when you got beamed down to the planet, try to have some fun while space command finds your eventual replacement

jobs

  1. helms - +1 to pushing buttons
  2. science - +1 to scanning
  3. command - tell someone else to roll for you when you fail a roll
  4. engineering - +1 to technobabble
  5. security - +1 to lasers (aiming and damaging)
  6. medical - take a -1 on your next roll, heal a red shirt 1 point [feedback needed]
from pinhook.plugin import BasePlugin, message
class Plugin(BasePlugin):
name = "echo"
command = '!echo'
def run(self, msg):
return message('it worked!')

The Undying Lord

Your patron is a lich or some other powerful being that no longer recognizes servitude ending upon your death. Obsessesed with the acquisition of secrets and arcane knowledge, the Undying Lord has reached out to you with promises of a life everlasting as long as you dedicate yourself to their services.

Lord of the Undying Expanded Spells
Spell Level Spells
1st inflict wounds, bane
2nd warding wind, gentle repose
3rd animate dead, life transference
4th death ward, phantasmal killer
5th raise dead, modify memory
@archangelic
archangelic / hacker.py
Last active February 12, 2018 20:47
hacker.py
import string
letters = string.ascii_lowercase
def hacker(text):
text = text.lower().replace(r'\n', '\n').replace(' ', '\n')
out = ''
for l in text:
if l in letters:
out += ':hacker_{}: '.format(l)
@archangelic
archangelic / hug.pinhook
Last active May 29, 2020 21:43
Example sketch of config based pinhook plugins
[about]
name = "hug"
author = "archangelic"
type = "command"
[plugin]
command = "!hug"
argument = "recipient"
say = "I don't want to give a hug to {recipient}"
do = "gives {recipient} a hug"
class BigBadClass:
def __init__(self):
#this is normally where you get stuff that gets set up when you initialize the class
self.pants = "jorts"
def changepants(self, newpants):
# you can change the pants!
self.pants = newpants
#initialize the class
@archangelic
archangelic / pokebot.py
Created December 3, 2016 00:54
pokescript.py
#!/usr/bin/env python3
from pprint import pprint
import sys
import requests
pokemon = sys.argv[1]
r = requests.get('http://pokeapi.co/api/v2/pokemon/' + pokemon).json()

Keybase proof

I hereby claim:

  • I am archangelic on github.
  • I am archangelic42 (https://keybase.io/archangelic42) on keybase.
  • I have a public key ASCaLZmxgGu_n7A3hUFA10O1WWrXatDs6xd2U8Mhc2bhtQo

To claim this, I am signing this object:

import click
@click.command()
@click.argument('filename')
def hello(filename):
click.echo('Hello World!')
click.echo(filename)
if __name__ == '__main__':
hello()