Skip to content

Instantly share code, notes, and snippets.

@trn1ty
trn1ty / trigraphs.c
Last active May 2, 2022 22:40
Quick test to make sure your compiler knows trigraphs.
#include <unistd.h>
static char *program_name =
"trigraphs.c";
/* Trinity BLAKE 2020-2022
* Public domain */
char trigraphs[] =
@trn1ty
trn1ty / moderation.txt
Created January 31, 2022 18:54
Notes on community moderation
Notes on community moderation, in no particular order
DTB
(edited; originally circa 2021-04-18)
Ping people only when something needs to be acted on.
Remember that You, as moderator, support the members of the community,
not the other way around. It's up to you to ensure that members feel welcome
and sometimes it might feel like you're doing everything yourself. The rules
are flexible and breaking a rule within very good reason is okay to make
@trn1ty
trn1ty / pdfify.py
Last active January 27, 2021 18:02
img2pdf wrapper
#!/usr/bin/python3
import glob
import os
# img2pdf's all files with extension [extension] in [directory], with the output name [output].
# configuration =====
directory = "./"
extension = ".png"
output = "output.pdf"
@trn1ty
trn1ty / TETRATE.txt
Last active December 11, 2020 15:28
TI-BASIC Tetrator
Disp "TETRATOR","CODED BY","DEVEN BLAKE","2018-2020
Pause
ClrHome
Disp "THIS PROGRAM IS","INACCURATE TO","HIGHER NUMBERS","","--YOU'VE BEEN---","-----WARNED-----
Pause
ClrHome
Input "NUMBER TO TETRATE: ",A
Input "AMOUNT OF TETRATION: ",B
A->C
For(I,1,B