Skip to content

Instantly share code, notes, and snippets.

@jacohend
jacohend / Chainpoint without Node Discovery
Created April 3, 2020 17:56
Chainpoint with URIs specified, without Node Discovery
// Uses npm i chainpoint-client@0.3.0
const chp = require('chainpoint-client')
async function runIt() {
try {
// A few sample SHA-256 proofs to anchor
let hashes = [
'1d2a9e92b561440e8d27a21eed114f7018105db00262af7d7087f7dea9986b0a',
'2d2a9e92b561440e8d27a21eed114f7018105db00262af7d7087f7dea9986b0a',
'3d2a9e92b561440e8d27a21eed114f7018105db00262af7d7087f7dea9986b0a'

Keybase proof

I hereby claim:

  • I am jacohend on github.
  • I am jacohend (https://keybase.io/jacohend) on keybase.
  • I have a public key ASAEVNMwZKRPkjtRH-q1fEUtqrUH4n9qCXiPdso_u50Vuwo

To claim this, I am signing this object:

pragma solidity ^0.4.0;
contract EthNotary {
struct Document{
string creator;
string sender;
string document;
uint created;
uint blocknumber;
}
@jacohend
jacohend / overpass_speed.py
Created January 18, 2016 06:45
Get speed limits from OSM's Overpass API within a certain radius of gps coordinates
import overpy
import sys
import simplejson as json
#pip install overpy
#python overpass_speed.py 37.7833 -122.4167 500
def maxspeed(coordinates, radius):
lat, lon = coordinates
api = overpy.Overpass()
#! /usr/bin/env python
'''
Author: gregorynicholas (github), modified by Jacob Henderson (jacohend, github)
Module that runs pylint on all python scripts found in a directory tree..
'''
import os
import re
import sys