Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Stefaan Ponnet sponnet

🎯
Focusing
View GitHub Profile
View Registry.abi.json
[
{
"inputs": [
{
"internalType": "address[]",
"name": "_admins",
"type": "address[]"
}
],
"payable": false,
View keybase.md

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:

View ThumbnailGenerator.js
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 Mar 29, 2018
Swarm City Boardwalk Datasets
View hashtaglist.json
{
"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)",
View encrypttest.js
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 Jul 12, 2016
compile solidity files gulp task
View gulpfile.js
gulp.task('solc', function() {
glob([
'app/contracts/*.sol',
], {
cwd: '.'
}, function(error, files) {
var allfiles = '';
var destpath = '';
@sponnet
sponnet / readme.md
Created Mar 30, 2016
web3js filter example ( query a contract )
View readme.md

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 Sep 10, 2015
jsonp express example jongen
View gist:83baf52aba8b7ac317f1
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 Dec 9, 2013
dino findOne failure. Bug is present in model.js
View app.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: {