Skip to content

Instantly share code, notes, and snippets.

View thatlittlegit's full-sized avatar

Duncan McIntosh thatlittlegit

View GitHub Profile
@thatlittlegit
thatlittlegit / trope.1
Last active January 11, 2020 04:03
A small attempt at making an ed(1) recreation in Perl.
.TH TROPE 1 "Feburary 2019" "trope" "Trope Manual"
.SH NAME
trope \- the true programmer's text editor
.SH SYNOPSIS
.B trope
[options] [--] [input file]
.SH DESCRIPTION
.B trope
is an
.BR ed (1)
@thatlittlegit
thatlittlegit / README.md
Last active September 26, 2018 12:37
XeLaTeX build tool

latexxer

Builds XeLaTeX files using a five-step process, with Biber/BibLaTeX.

Usage

sh build.sh <latex file>
@thatlittlegit
thatlittlegit / basic.css
Created September 19, 2018 22:37
Basic CSS things.
/*
* basic.css: basic css rules.
*
* Once from wAPI, now separate. Licensed under the Unlicense <https://unlicense.org>
*/
.font-100 { font-weight: 100; }
.font-200 { font-weight: 200; }
.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
@thatlittlegit
thatlittlegit / forallnil.c
Last active July 8, 2018 19:43
Calculates SHA256 hashes until it finds one that is sixty-four zeros in the hex digest. Originally built in Rust; see the bottom of forallnil.c
#/* [57] forallnil.c: Loop calculating SHA256 hashes until all-zeros is
# * found.
# */
#/*
cmd="$0 -lcrypto -o forallnil -Wall $CFLAGS"
echo $cmd
exec gcc $cmd
*/
/*** BUILDING
* Build by running this file with the Bourne shell (sh).
@thatlittlegit
thatlittlegit / dice.js
Created June 25, 2018 18:26
Dice-rolling program. Run with Lodash.
/* [41] dice.js: Utilities for dice-rolling. Intended for large numbers of
* divisions in Risk.
*/
/*** DEPENDENCIES ***
* lodash
*/
/*** USAGE ***
* rollDice(): Run rollDice() with an array of the number of dices to roll.
@thatlittlegit
thatlittlegit / SimpleChat.md
Last active July 3, 2018 17:25
A simple chat protocol.

SimpleChat Protocol (sc) 0.1.0

A simple chat protocol designed to be easily usable by means of Telnet/Netcat.

All input on the assigned port (103) is, assuming no other expectations are met, forwarded to all users (in the room, if applicable) in the format of id&room&username&message, where id is a unique identifier for the message. This ID can be a UUID, nanoid, incrementing integer, etc. room MUST be empty if rooms are not being used.

All communication on the port shall be in UTF-8 format; messages SHOULD NOT be

@thatlittlegit
thatlittlegit / polandball.txt
Last active February 24, 2018 22:17
Polandball
###########################################
# P O L A N D B A L L #
#=========================================#
# A COLLECTION OF NEAT COMICS FROM #
# /r/polandball #
###########################################
#
# These comics were taking up my Pocket list, so I
# am putting them in this public repository.
#
@thatlittlegit
thatlittlegit / keybase.md
Last active November 26, 2017 15:16
Keybase Verification

Keybase proof

I hereby claim:

  • I am thatlittlegit on github.
  • I am thatlittlegit (https://keybase.io/thatlittlegit) on keybase.
  • I have a public key whose fingerprint is 6C0D 0390 7615 88D8 4476 D31E 50F8 158D 2C50 8E24

To claim this, I am signing this object: