Skip to content

Instantly share code, notes, and snippets.

View zoernert's full-sized avatar

Thorsten Zoerner zoernert

View GitHub Profile
@zoernert
zoernert / fs_blockchain_edifact.js
Created July 10, 2016 20:41
Sample Implementation for EDI style message exchange using Ethereum blockchain for transactions (log messages transferred) and IPFS for message content (encrypted)
/**
Simple file based EDI style message exchange using EDIchain
Will use the following folder structure:
out\ = Place EDI Messages as text files in here (required Recipient in UNB segment)
sent\ = Messages sent and documented in blockchain (filename will be Transaction ID_IPFS-Hash
in\edi = Received EDI Messages (text files)
in\meta = Meta files corresponding to EDI Messages.
@zoernert
zoernert / microdao.abi
Last active June 19, 2017 10:13
Micro DAO to create an EVU in Germany
[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "MicroDAO" } ], "type": "function" }, { "constant": false, "inputs": [], "name": "executeSpendingRequests", "outputs": [], "type": "function" }, { "constant": false, "inputs": [ { "name": "number_of_days", "type": "uint256" }, { "name": "requiredShares", "type": "uint256" } ], "name": "setDirectorLock", "outputs": [], "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "bookings", "outputs": [ { "name": "time", "type": "uint256" }, { "name": "funding", "type": "uint256" }, { "name": "spending", "type": "uint256" }, { "name": "counterpart", "type": "address" }, { "name": "text", "type": "string" } ], "type": "function" }, { "constant": false, "inputs": [], "name": "closeFunding", "outputs": [], "type": "function" }, { "constant": false, "inputs": [ { "name": "node", "type": "string" } ], "name": "setDirectorNode", "outputs": [], "type": "function" }, { "consta
@zoernert
zoernert / gist:9b7f22a3e456dbe9c6ab
Created May 28, 2015 12:51
GoogleApps Script: Label all old Gmails
// Use at: https://script.google.com/
function findOldMails() {
// Find UserLabel (Needs to exist)
var label = GmailApp.getUserLabelByName("old");
// Setting our query
var query="older_than:1y -label:old";
Verifying I am +zoernert on my passcard. https://onename.com/zoernert