Skip to content

Instantly share code, notes, and snippets.

View sponnet's full-sized avatar
🎯
Focusing

Stefaan Ponnet sponnet

🎯
Focusing
View GitHub Profile
@sponnet
sponnet / Registry.abi.json
Created October 3, 2020 14:37
Registry ABI
[
{
"inputs": [
{
"internalType": "address[]",
"name": "_admins",
"type": "address[]"
}
],
"payable": false,

Keybase proof

I hereby claim:

  • I am sponnet on github.
  • I am sponnet (https://keybase.io/sponnet) on keybase.
  • I have a public key ASAARMu54nvMR813Bv_zpqijaL7QRMLYEdvNFXgok4U6FQo

To claim this, I am signing this object:

const { Plugin } = require("@uppy/core");
const dataURItoBlob = require("@uppy/utils/lib/dataURItoBlob");
const isPreviewSupported = require("@uppy/utils/lib/isPreviewSupported");
/**
* The Thumbnail Generator plugin
*
*/
module.exports = class ThumbnailGenerator extends Plugin {
@sponnet
sponnet / hashtaglist.json
Last active March 29, 2018 08:36
Swarm City Boardwalk Datasets
{
"hashtagData": {
"address":"0x3f0189a1647d091d111c78aacfbbddbd6b2c86b5",
"name":"Settler",
"description":"The first marketplace in Swarm City was #pioneer. This is the second. Post and answer requests for goods and services in this marketplace, and earn reputation as one of the earliest adopters.",
"contact":
[{"name":"support@swarm.city",
"link":"mailto:support@swarm.city"
},{
"name":"@SwarmCityHelp (Twitter)",
const {
performance
} = require('perf_hooks');
const EthCrypto = require('eth-crypto');
const identity = EthCrypto.createIdentity();
function randomString(string_length) {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
//var string_length = 8;
@sponnet
sponnet / gulpfile.js
Created July 12, 2016 14:33
compile solidity files gulp task
gulp.task('solc', function() {
glob([
'app/contracts/*.sol',
], {
cwd: '.'
}, function(error, files) {
var allfiles = '';
var destpath = '';
@sponnet
sponnet / readme.md
Created March 30, 2016 09:56
web3js filter example ( query a contract )

run a testnet geth client

geth --testnet --rpc

let it sync and then run the example above

node web3filterexample.js

It should return something like

@sponnet
sponnet / gist:83baf52aba8b7ac317f1
Last active September 10, 2015 13:49
jsonp express example jongen
var express = require('express');
var request = require('request');
var app = express();
app.get('/', function(req, res) {
var street = "Beekvelden";
var postal = "2840";
request.get({
@sponnet
sponnet / app.js
Created December 9, 2013 15:27
dino findOne failure. Bug is present in model.js
var dino = require('dino');
var LoginAWSmodel = dino.model({
schema: dino.schema({
table: 'dino-test',
attributes: {
myhash: dino.types.string,
mydata: dino.types.string,
},
key: {