Skip to content

Instantly share code, notes, and snippets.

View makevoid's full-sized avatar

Francesco 'makevoid' Canessa makevoid

View GitHub Profile
import "AssetLedger.sol";
// TODO describe rules of exchange.
// In the AF market all users benefit from a "last look" facility to prevent
// them falling foul of mechanical arb sniping by those exploiting the way
// the blockchain and smart contract data lags the real markets being tracked.
// The system proceeds through a series of batching steps, which in practice
// might correspond to some number of blocks (for example, each batching step
// corresponds to a block). Orders collected in batching step B_i are initially
// in a "pending" state although visible within the book. Orders then remain
0x5F0bc362b192F9305337320FC06D5C540d65114A
0x48B7c27868Be4ecb58fFb8dfe98654C48EDaA9aE
@makevoid
makevoid / metr-at-video-overlay.css
Last active April 29, 2017 08:38
metr.at VESC logger app - Video Overlay custom HTML/CSS/JS
.hidden{ display: none; }
/* --- */
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
white-space: nowrap;
@makevoid
makevoid / keythereum-js-example.js
Created February 23, 2017 14:19
keythereum-js example
`"use strict"`
const keythereum = require('keythereum')
const c = console
// private key from bitcoin
let privateKey = "10f2fb3aaac742b2f6c2a0a830d5330846633c8a139696cca2c0e379944f62b2"
let password = "bla"
// ---
@makevoid
makevoid / jasonette-runkit-endpoint.js
Created November 8, 2016 22:25
Jasonette runkit endpoint - render a json object, stringify it, add a bit of jasonette, bam! you have a native app.
// endpoint: https://runkit.io/makevoid/jasonette-3/branches/master
// ----------------------------------------------------------------
// var cheerio = require('cheerio'),
// $ = cheerio.load('<h2 class = "title">Hello world</h2>');
// todo: idea for next app, scrape some html, extract links, display them in native app
{
"contract": {
"marriage": ["Kristina Butkute", "Francesco Canessa"]
},
"timestamp": "2016-10-29 1:30 PM UTC",
"location": "Tower Hamlets public hall, London, UK",
"signatures": ["FC", "KB"],
"contract_scan_sha2": "WILL_PROVIDE",
"contract_scan": {
"http": "WILL_UPLOAD",
@makevoid
makevoid / bulma.css
Created October 31, 2016 05:45
Bulma css pink template
/*! minireset.css v0.0.2 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
@makevoid
makevoid / index.html
Created October 26, 2016 20:44
redirect page index.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example</title>
<meta http-equiv="refresh" content="0;URL='http://example.com/'" />
</head>
<body>
<p>
This page has moved to
<a href="http://example.com/">example.com</a>.
</p>
@makevoid
makevoid / ethereum_mnemonic.js
Created October 21, 2016 14:33
ethereum mnemonic
"use strict"
const Mnemonic = require('bitcore-mnemonic')
const EthereumBIP44 = require('ethereum-bip44/dist/es5')
const c = console
let mnemonic
let mnemonicString
let store
if (typeof localStorage !== "undefined") {