Skip to content

Instantly share code, notes, and snippets.

View pxeger's full-sized avatar
🎩
he/him

Patrick Reader pxeger

🎩
he/him
View GitHub Profile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
The following public PGP key belongs to me, pxeger, and is valid until 28th September 2023:
- -----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGTNDdsBDADHiFiuPbWglMa/mctu/cEuPkf6GY0dwS1riKXziMSku47igmPk
5V7DlwbKM0MkB9LjlWVQJNi8H353C0LPUKk5N7kyxaD2HCY+pw16X5lqWGg80Pmm
LLvtneX1awVtUB9vrHXI/D5jYg4j6X1/g5buhCK05qGpo1h5L7cWWaztkr2M1cBQ
@pxeger
pxeger / pike.py
Created October 28, 2021 08:47
absolutely minimal python3.10 bytecode wrapper
#!/usr/bin/env python3.10
import binascii,sys,types
exec(types.CodeType(0,0,0,9999,9999,0,binascii.a2b_hex(open(sys.argv[1],"rb").read().strip()),(),("type",),tuple(map(str,range(9999))),"","",0,b"",(),()),{})
- element: '+'
name: add
arity: 2
description: adds the top two items on the stack
num-num: a + b
num-str: str(a) + b
str-num: a + str(b)
str-str: a + b
vectorise: true
tests:
@pxeger
pxeger / README.md
Created June 19, 2021 19:32
Binary Golf Grand Prix 2021

Binary Golf Grand Prix 2021

@pxeger
pxeger / XHoursLater.js
Last active April 2, 2021 06:53
SE chat: remove "X hours later" message
// ==UserScript==
// @name Remove "X Hours Later" text
// @namespace https://_.pxeger.com/19thByte
// @version 1.1
// @description Remove the useless "X Hours Later" message that appears on SE chat
// @author Patrick Reader <_@pxeger.com>
// @match https://chat.stackexchange.com/rooms/*
// @icon https://chat.stackexchange.com/favicon.ico
// @grant none
// @updateURL https://gist.github.com/pxeger/ed887a9dc3566c98a8a11b77735f49b5
@pxeger
pxeger / keybase.md
Created July 5, 2020 14:52
Keybase GitHub Profile Verification

Keybase proof

I hereby claim:

  • I am pxeger on github.
  • I am pxeger (https://keybase.io/pxeger) on keybase.
  • I have a public key ASD9O9TGuyzcmtbNdiGTyjmGGrhX1GH3LV-BrjzA64cJ6Qo

To claim this, I am signing this object: