- https://wasser.liebechaos.org/ - Convert CBOR to JSON to inspect it and validate it via CDDL schema
- https://cbor.me/ - Insert hex-encoded CBOR data in the right area to get the diagnostic output in the left or vice versa
- https://cbor.nemo157.com/ - Similar page with nicer UI
- https://cddl.anweiss.tech/ - Check your CDDL format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CirclesCore = require("@circles/core"); | |
const TokenContract = require("circles-contracts/build/contracts/Token.json"); | |
const Web3 = require("web3"); | |
const privateKey = ''; | |
const provider = new Web3.providers.HttpProvider("http://localhost:8545"); | |
const web3 = new Web3(provider); | |
const core = new CirclesCore(web3, { | |
hubAddress: "0xCfEB869F69431e42cdB54A4F4f105C19C080A601", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CirclesCore = require("@circles/core"); | |
const TokenContract = require("circles-contracts/build/contracts/Token.json"); | |
const Web3 = require("web3"); | |
const LOOP_INTERVAL = 1000; | |
const MAX_ATTEMPTS = 60; | |
const SAFE_DEPLOYMENT_GAS = Web3.utils.toWei('0.01', 'ether'); | |
const privateKeys = [ | |
"0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d", |
While waiting for better automated tests of the worker that syncs the trust graph, this is a formally specified test routine that can be run manually with the help of the script in link
- The graph
- Deployed subgraph with the correct name
- Ganache-cli
- Deployed circles contracts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CirclesCore = require("@circles/core"); | |
const TokenContract = require("circles-contracts/build/contracts/Token.json"); | |
const Web3 = require("web3"); | |
const chalk = require("chalk"); | |
const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; | |
// =========================== | |
// Configuration | |
// =========================== |
I hereby claim:
- I am adzialocha on github.
- I am adzialocha (https://keybase.io/adzialocha) on keybase.
- I have a public key ASD9z8Yqg_9qGeVeMRB1HcvKiF6N66YGL34yBcocKRqqdgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import csv | |
import json | |
import os | |
import urllib | |
def is_float(x): | |
try: | |
a = float(x) | |
except ValueError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, sys, os, pkg_resources | |
import SocketServer | |
from twisted.python import log | |
from twisted.internet import reactor | |
from twisted.application import service | |
from twisted.internet.protocol import DatagramProtocol, Protocol, Factory | |
from twisted.web.server import Site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
angular.module('app') | |
.directive 'keyboardListener', [ '$rootScope', ($rootScope) -> | |
restrict: 'A' | |
link: ($scope, $element, attrs) -> | |
_height = undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
angular.module('angular-truncate') | |
.directive 'truncate', [ () -> | |
restrict: 'A' | |
link: (scope, element, attrs) -> | |
# wait until text is available |