Skip to content

Instantly share code, notes, and snippets.

👻

Matt Heath mattheath

👻
Block or report user

Report or block mattheath

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mattheath
mattheath / Apple Keyboard Autohotkey Script
Created Mar 24, 2011
A script for autohotkey to remap keys when using an Apple Keyboard with a Windows PC
View Apple Keyboard Autohotkey Script
;
; 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 Dec 14, 2015
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.
View uninstall-homebrew.sh
#!/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 Apr 12, 2013
Publicize membership of Coderwall organisations
View publicize-coderwall-membership.rb
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/
View Protobuf.JSON-tmLanguage
{
"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 Aug 29, 2015
Modified Go language definition for Highlight
View go.lang
-- 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 Aug 29, 2015
Modified Monokai dark theme for Go for use with Highlight
View monokai.theme
-- 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}
View 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:

View gist:29f181af5bc4b911a82a
Verifying that +mattheath is my openname (Bitcoin username). https://onename.com/mattheath
@mattheath
mattheath / index.html
Last active Aug 29, 2015 — forked from mbostock/.block
Hierarchical Edge Bundling
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
font: 11px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.link {
stroke: steelblue;
You can’t perform that action at this time.