Skip to content

Instantly share code, notes, and snippets.

View S3bb1's full-sized avatar

Sebastian Dechant S3bb1

  • Eisenach, Germany
  • 16:15 (UTC +02:00)
View GitHub Profile
@S3bb1
S3bb1 / result.json
Created August 5, 2011 07:01
JSON Result
{
"Result": "Successful",
"Duration": [
0,
"ms"
],
"Results": [
[
{
"Properties": {
@S3bb1
S3bb1 / after.json
Created August 5, 2011 07:08
JSON Result after conversion
{
"Age": "21",
"Name": "Sebastian",
"children": [
{
"Age": "19",
"Name": "Alexander"
},
{
"Age": "45",
@S3bb1
S3bb1 / tree.js
Created August 5, 2011 08:26
tree
function printTree(VertexList, depth)
{
var properties = VertexList.getProperties();
if(depth == 0)
{
console.log(VertexList);
if(properties.lenght != 0) {
$.each(properties, function(){
tree[new String(this.ID)] = this.Value;
});
module.exports = [
{
"emoji": "100",
"surrogates": [
"💯"
]
},
{
"emoji": "1234",
"surrogates": [
This file has been truncated, but you can view the full file.
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.lightwallet = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
module.exports = {
txutils: require('./lib/txutils.js'),
encryption: require('./lib/encryption.js'),
signing: require('./lib/signing.js'),
keystore:
//! Copyright 2017 Peter Czaban, Parity Technologies Ltd.
//!
//! Licensed under the Apache License, Version 2.0 (the "License");
//! you may not use this file except in compliance with the License.
//! You may obtain a copy of the License at
//!
//! http://www.apache.org/licenses/LICENSE-2.0
//!
//! Unless required by applicable law or agreed to in writing, software
//! distributed under the License is distributed on an "AS IS" BASIS,
{
"name": "validatortest",
"engine": {
"authorityRound": {
"params": {
"stepDuration": "3",
"validators": {
"multi": {
"0": {
"list": [
@S3bb1
S3bb1 / dt-create.js
Created July 4, 2018 19:30
Digital Twin How To
(async () => {
// require blockchain-core dependencies
const IpfsApi = require('ipfs-api');
const Web3 = require('web3');
// require blockchain-core
const { Ipfs, createDefaultRuntime, ModificationType, PropertyType } = require('@evan.network/blockchain-core');
const accountId = '0xD5c4b30B3c80E01B7eF3E7067Ce13733Df11d8A1';
// configure the runtime object
const runtimeConfig = {
@S3bb1
S3bb1 / VerificationCheck.sol
Created May 10, 2019 09:50
Solidity - check verification for a given identity
pragma solidity ^0.4.20;
// interface for identity, that holds verifications
interface VerificationHolder {
function getVerification(bytes32 _verificationId)
external
view
returns(
uint256 topic,
uint256 scheme,
@S3bb1
S3bb1 / sendFunds.js
Created May 14, 2019 12:14
send transaction
// require blockchain-core dependencies
const IpfsApi = require('ipfs-api');
const Web3 = require('web3');
const fs = require('fs')
// require blockchain-core
const { Ipfs, createDefaultRuntime, Executor } = require('@evan.network/api-blockchain-core');
const runtimeConfig = {
// account map to blockchain accounts with their private key