Skip to content

Instantly share code, notes, and snippets.

View tmthrgd's full-sized avatar

Tom Thorogood tmthrgd

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tmthrgd on github.
  • I am tmthrgd (https://keybase.io/tmthrgd) on keybase.
  • I have a public key whose fingerprint is 8A8E F43C 4DBF 7320 FA82 7AEA DBAB 7016 FF59 4180

To claim this, I am signing this object:

@tmthrgd
tmthrgd / x509-ip.go
Created May 27, 2016 12:03
Create an X509 certificate with local IP addresses in Golang.
/*
template := x509.Certificate{
...
}
*/
addrs, err := net.InterfaceAddrs()
if err != nil {
panic(err)
@tmthrgd
tmthrgd / GitHub Language Repo Colors.html
Last active September 2, 2016 09:51
Parses languages.yml from github/linguist to create css for http://tomthorogood.co.uk/projects/
<!doctype html>
<html lang=en>
<!--
(c) Tom Thorogood 2013
https://tomthorogood.co.uk
Copyright 2013 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
@tmthrgd
tmthrgd / dabblet.css
Last active September 2, 2016 09:57
Sticky Footers, flexbox style!
/* Sticky Footers, flexbox style! */
/*
(c) Tom Thorogood 2013
https://tomthorogood.co.uk
Copyright 2013 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
@tmthrgd
tmthrgd / base58-to-base64.go
Last active September 2, 2016 09:58
Convert base58 encoding to base64.
/*
(c) Tom Thorogood 2016
https://tomthorogood.co.uk
Copyright 2016 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
*/
@tmthrgd
tmthrgd / hex-to-base64.go
Last active September 2, 2016 09:59
Convert hex to base64 encoding.
/*
(c) Tom Thorogood 2016
https://tomthorogood.co.uk
Copyright 2016 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
*/
@tmthrgd
tmthrgd / html2md.js
Last active September 2, 2016 09:59
Convert HTML to Markdown in DOM Javascript.
/*
(c) Tom Thorogood 2015
https://tomthorogood.co.uk
Copyright 2015 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
*/
@tmthrgd
tmthrgd / animated-banner.html
Last active September 2, 2016 09:59
CSS3 Animated Banner
<!doctype html>
<html lang=en>
<!--
(c) Tom Thorogood 2012
https://tomthorogood.co.uk
Copyright 2012 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
@tmthrgd
tmthrgd / field.html
Last active September 2, 2016 09:59
Animated input field borders.
<!doctype html>
<html lang=en>
<!--
(c) Tom Thorogood 2016
https://tomthorogood.co.uk
Copyright 2016 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.
<!doctype html>
<html lang=en>
<!--
(c) Tom Thorogood 2013
https://tomthorogood.co.uk
Copyright 2013 Tom Thorogood. All rights reserved.
Use of this source code is governed by a
Modified BSD License license that can be found in
the LICENSE file.