Skip to content

Instantly share code, notes, and snippets.

View chappjc's full-sized avatar
🏁

Jonathan Chappelow chappjc

🏁
View GitHub Profile
@chappjc
chappjc / socket.html
Created May 18, 2018 22:58 — forked from oluwandabira/socket.html
Test page that connects to the insight socket.io backend and logs new transactions and blocks.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<script src="http://localhost:7777/js/socket.io.slim.js"></script>
<script>
var socket = io('http://localhost:7777', {path: '/insight/socket.io', transports: ['websocket'], upgrade: false});
//var socket = io('https://mainnet.decred.org/')
@chappjc
chappjc / handler.go
Created March 23, 2017 00:40 — forked from rjz/handler.go
Handle Github webhooks with golang
// Now available in package form at https://github.com/rjz/githubhook
package handler
// https://developer.github.com/webhooks/
import (
"crypto/hmac"
"crypto/sha1"
"encoding/hex"
"errors"