Skip to content

Instantly share code, notes, and snippets.

Avatar
📞
dialing up...

Deven Blake devenblake

📞
dialing up...
View GitHub Profile
View trigraphs.c
#include <stdio.h> /* Public domain. Deven Blake 2020-2021. */
int main(int argc, char *argv[]){
char trigraphs[] =
/* From the C89 draft specification, section 2.2.1.1:
* All occurrences in a source file of the following sequences of
* three characters (called trigraph sequences[5]) are replaced
* with the corresponding single character. */
"??=" /* # */
"??(" /* [ */
"??/??/" /* \\ - escaped backslash; will print '\' */
@devenblake
devenblake / pdfify.py
Last active Jan 27, 2021
img2pdf wrapper
View pdfify.py
#!/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"
@devenblake
devenblake / TETRATE.txt
Last active Dec 11, 2020
TI-BASIC Tetrator
View TETRATE.txt
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