Skip to content

Instantly share code, notes, and snippets.

View tmthrgd's full-sized avatar

Tom Thorogood tmthrgd

View GitHub Profile
<!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.
<!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 / 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.
@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 / 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 / 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 / nginx-status-text.conf
Created May 27, 2016 12:00
Nginx status code to message map.
map $status $status_msg {
default "An error occured";
100 Continue;
101 "Switching Protocols";
102 Processing; # WebDAV; RFC 2518
200 OK;
201 Created;
202 Accepted;
203 "Non-Authoritative Information";
204 "No Content";
@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 / 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.
*/

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: