Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
Writing code

Tom Busby tombusby

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

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 Dec 17, 2019
Mac Setup Tips and Tricks
View mac-setup.md

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 Dec 16, 2019
Servant Study Notes
View servant-study-notes.md

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 Dec 11, 2019
Elm Study Notes
View elm-study-notes.md

Elm Study Notes

Decoding Recursive Data Structures:

From Elm Slack

For example:

type ExtractFields
View haskell-self-study.md
@tombusby
tombusby / personnummer.rb
Created Sep 12, 2019 — forked from henrik/personnummer.rb
Generate valid Swedish personnummer.
View personnummer.rb
# 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 Jul 13, 2018
Cypherpunks Mailing List Majordomo Perl Config Scripts
View .forward
"|/usr/bin/procmail -t"
View keybase.md

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:

You can’t perform that action at this time.