Skip to content

Instantly share code, notes, and snippets.

View mattheath's full-sized avatar
👻

Matt Heath mattheath

👻
View GitHub Profile
@mattheath
mattheath / Apple Keyboard Autohotkey Script
Created March 24, 2011 12:37
A script for autohotkey to remap keys when using an Apple Keyboard with a Windows PC
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Matt Heath <matt@mattheath.com>
;
; Script Function:
; Remaps keys when using an Apple Keyboard with a Windows PC
;
@mattheath
mattheath / uninstall-homebrew.sh
Last active December 14, 2015 23:19
Uninstall homebrew after installing Boxen. The usual homebrew uninstall script uses `brew --prefix` which would nuke the boxen homebrew install, rather than the original install. This assumes homebrew was installed to /usr/local which is the default.
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@mattheath
mattheath / publicize-coderwall-membership.rb
Created April 12, 2013 02:36
Publicize membership of Coderwall organisations
require "github_api"
user = ''
token = ''
github = Github.new oauth_token: token
coderwall_orgs = []
github.orgs.list.each do |org|
coderwall_orgs << org.login if org.login =~ /^coderwall/
{
"name": "ProtoBuf",
"scopeName": "source.proto",
"fileTypes": ["proto"],
"foldingStartMarker": "{",
"foldingStopMarker": "}",
"patterns": [
{ "match": "\\s+[0-9]*",
"name": "constant.numeric.proto",
"comment": "Field numbers"
@mattheath
mattheath / go.lang
Last active August 29, 2015 14:07
Modified Go language definition for Highlight
-- Language definition generated by lang2to3
-- Modified version of Go definition located somewhere like:
-- {$HOMEBREW_ROOT}/Cellar/highlight/3.14/share/highlight/langDefs/go.lang
Description="Go"
Keywords={
{ Id=1,
List={"break", "default", "func", "interface", "select", "case", "defer", "go", "map", "struct", "chan", "else", "goto", "package", "switch", "const", "fallthrough", "if", "range", "type", "continue", "for", "import", "return", "var"},
},
@mattheath
mattheath / monokai.theme
Last active August 29, 2015 14:07
Modified Monokai dark theme for Go for use with Highlight
-- Modified theme from Molokai
-- Store in your Highlight themes directory, eg.
-- {$HOMEBREW_ROOT}/Cellar/highlight/3.14/share/highlight/themes/monokai.theme
Description = "Monokai"
Default = { Colour="#F8F8F2" }
Canvas = { Colour="#272822" }
Number = { Colour="#AF7DFF" }
Escape = { Colour="#66D9EF" , Italic=true}
@mattheath
mattheath / keybase.md
Created December 1, 2014 11:24
keybase.md

Keybase proof

I hereby claim:

  • I am mattheath on github.
  • I am mattheath (https://keybase.io/mattheath) on keybase.
  • I have a public key whose fingerprint is 2237 D694 B37F E5BB 14A1 B9BE 4F77 D646 8493 628B

To claim this, I am signing this object:

Verifying that +mattheath is my openname (Bitcoin username). https://onename.com/mattheath
@mattheath
mattheath / index.html
Last active August 29, 2015 14:27 — forked from mbostock/.block
Hierarchical Edge Bundling
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
font: 11px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.link {
stroke: steelblue;