Skip to content

Instantly share code, notes, and snippets.

View woky's full-sized avatar

woky

View GitHub Profile
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity frame_writer is
port (
clk : in std_logic := '0'; -- clk.clk
reset : in std_logic := '0'; -- reset.reset
ctl_write : in std_logic := '0'; -- ctl.write
ctl_writedata : in std_logic_vector(31 downto 0) := (others => '0'); -- .writedata
Setup: 'avalon_sys_inst|sdram_pll|sd1|pll7|clk[0]' report for main
Sun Apr 10 11:20:04 2016
Quartus Prime Version 15.1.1 Build 189 12/02/2015 SJ Lite Edition
---------------------
; Table of Contents ;
---------------------
1. Legal Notice
2. Fast 1200mV 0C Model Setup: 'avalon_sys_inst|sdram_pll|sd1|pll7|clk[0]'
package wokytwitter
import scala.concurrent.ExecutionContext.Implicits.global
object Main extends App {
import com.danielasfregola.twitter4s.TwitterRestClient
import com.danielasfregola.twitter4s.TwitterStreamingClient
val restClient = TwitterRestClient()
const fs = require('fs');
const crypto = require("crypto");
const sqlite3 = require('sqlite3').verbose();
const sqljs = require('sql.js');
const zencashjs = require('zencashjs');
function decryptWallet(login, password, path) {
let i = Buffer.byteLength(login);
let inputBytes = fs.readFileSync(path);
let recoveredLogin = inputBytes.slice(0, i).toString("utf8");
POST /insight-api-zen/tx/send HTTP/1.1
content-type: multipart/form-data;boundary=--------------------------169936334099816031804939
accept: */*
content-length: 762
user-agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
accept-encoding: gzip,deflate
connection: close
Host: explorer.zenmine.pro
----------------------------169936334099816031804939
export class Pinboard {
constructor(apiToken) {
this.authToken = apiToken;
}
fetchApi(path, params = {}) {
let urlParams = new URLSearchParams();
for (let [key, value] of Object.entries(params))
urlParams.append(key, value);
urlParams.append('auth_token', this.authToken);
urlParams.append('format', 'json');
% ./scripts/p2p-test-tool.py -b -p 2 -t -T integration1
Removing resources for docker network rchain.coop
removing rchain.coop
Starting bootstrap node.
Starting bootstrap node.
creating bootstrap.rchain.coop
Installing additonal packages on container.
Starting peer nodes.
Create and run peer nodes to connect via bootstrap.
creating peer0.rchain.coop
% while :; do ./bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 ../../work/rchain/rholang/examples/tut-hello.rho ; ./bin/rnode propose; sleep 1; done
19:29:32.560 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile default
Response: Success!
./bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 8,21s user 0,49s system 142% cpu 6,087 total
19:29:37.853 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile default
Response: Success! Block e877d67b98... created and added.
./bin/rnode propose 7,23s user 0,34s system 112% cpu 6,705 total
19:29:45.929 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile default
Response: Success!
./bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 8,23s user 0,60s system 141% cpu 6,265 total
02:08:13.016 [grpc-default-executor-107] INFO c.r.casper.MultiParentCasperImpl - Received Deploy #1536545292539 -- @{"dupe"}!(5) | for( @{x0...
@{["@@highCard game:", Unforgeable(0x53a1ab13f9ae9a0b666324ec94479e6ef3ee4e908c04f712063637c8ed86dfdf)]}
@{["@@pick from among:", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]]}
@{["@@pick from among:", ["Diamonds", "Clubs", "Hearts", "Spades"]]}
@{["@@pick from among:", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]]}
@{["@@pick from among:", ["Diamonds", "Clubs", "Hearts", "Spades"]]}
@{["winner", ("Spades", 10)]}
@{["loser", ("Spades", 2)]}
@{["@@highCard game:", Unforgeable(0x38be3c6f0e92ceee8f9c78c9e788090a34f80aef06cc0a71886df7dd6c9eba8a)]}
@{["@@pick from among:", ["Diamonds", "Clubs", "Hearts", "Spades"]]}
18:57:26.623 [main] INFO c.r.n.configuration.Configuration$ - Using configuration file: /var/lib/rnode/rnode.toml
18:57:28.014 [main] WARN c.r.n.configuration.Configuration$ - Configuration file /var/lib/rnode/rnode.toml not found
18:57:28.762 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile docker
INFO - trying to open ports using UPnP....
INFO - No gateway devices found
INFO - No need to open any port
Using data_dir: /var/lib/rnode
No certificate found at path /var/lib/rnode/node.certificate.pem
Generating a X.509 certificate for the node
Generating a PEM secret key for the node