Skip to content

Instantly share code, notes, and snippets.

View tombusby's full-sized avatar
🎧
Writing code

Tom Busby tombusby

🎧
Writing code
View GitHub Profile
@tombusby
tombusby / LaTeX-study-notes.md
Last active January 11, 2020 21:59
LaTeX Study Notes

LaTeX Study Notes

Commands

Commands begin with a \ and are instructions to LaTeX (i.e. not content which will appear on the page - although they can cause content to be generated such as the \LaTeX{} macro).

For example:

\documentclass{article}
@tombusby
tombusby / mac-setup.md
Last active December 17, 2019 19:25
Mac Setup Tips and Tricks

Mac Setup Tips and Tricks

Set up iterm2 so that Opt key works per word

See this StackExchange post

Term Colours

Add to .bash_profile:

@tombusby
tombusby / servant-study-notes.md
Last active December 16, 2019 21:11
Servant Study Notes

Servant Study Notes

To Understand How Servant Itself Works

Data Kinds

The DataKinds extension allows us to promote data constructors into type constructors, which also promotes their type constructors into kind constructors. To promote something up a level, we prefix the name with an apostrophe, or tick: '.

This segment from Basic Type Level Programming in Haskell.

@tombusby
tombusby / elm-study-notes.md
Last active December 11, 2019 20:40
Elm Study Notes

Elm Study Notes

Decoding Recursive Data Structures:

From Elm Slack

For example:

type ExtractFields
@tombusby
tombusby / haskell-self-study.md
Last active December 4, 2019 11:28
Haskell Self-Study
@tombusby
tombusby / personnummer.rb
Created September 12, 2019 19:24 — forked from henrik/personnummer.rb
Generate valid Swedish personnummer.
# Generator for valid Swedish personnummer: http://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)
# By Henrik Nyh <http://henrik.nyh.se> 2009-01-29 under the MIT license.
require 'date'
module Personnummer
def self.generate(date=nil, serial=nil)
date ||= Date.new(1900+rand(100), 1+rand(12), 1+rand(28))
serial = serial ? serial.to_s : format("%03d", 1+rand(999)) # 001-999
@tombusby
tombusby / .forward
Created July 13, 2018 12:11
Cypherpunks Mailing List Majordomo Perl Config Scripts
"|/usr/bin/procmail -t"

Keybase proof

I hereby claim:

  • I am tombusby on github.
  • I am tombusby (https://keybase.io/tombusby) on keybase.
  • I have a public key ASA3mlmKDkAYYwdtusGavupuudIx2Fwn7ztlXfenu-CKkQo

To claim this, I am signing this object: