Skip to content

Instantly share code, notes, and snippets.

View dakk's full-sized avatar
Working from boat

Davide Gessa dakk

Working from boat
View GitHub Profile
test_traces_127__testvectors_jamtestvectors_traces_reports_l0_00000041_json (jamtv.test_traces.TestTraces.test_traces_127__testvectors_jamtestvectors_traces_reports_l0_00000041_json) ... Processing: ./testvectors/jamtestvectors/traces/reports-l0/00000041.json
State imported
Block loaded
Tracing for block: 41
single_service_accumulation(service_idx=0)
[Hostcall] accumulate_invoke()
program_argument_invoke()
host_call_invoke()
pvm_invoke()
This file has been truncated, but you can view the full file.
Tracing for block: 3
single_service_accumulation(service_idx=0)
[Hostcall] accumulate_invoke()
program_argument_invoke()
host_call_invoke()
pvm_invoke()
1: PC 5 jump (0x6b97) g=100000 reg=[4294901760, 4278059008, 0, 0, 0, 0, 0, 4278124544, 147, 0, 0, 0, 0]
2: PC 27543 add_imm_64 (ω1, ω1, 0xffffffffffffff98) g=99999 reg=[4294901760, 4278059008, 0, 0, 0, 0, 0, 4278124544, 147, 0, 0, 0, 0]
3: PC 27546 store_ind_u64 (ω0, ω1, 0x60) g=99998 reg=[4294901760, 4278058904, 0, 0, 0, 0, 0, 4278124544, 147, 0, 0, 0, 0]
{
"env": "tiny",
"block": {
"header": {
"parent": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parent_state_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extrinsic_hash": "0xdc080ad182cb9ff052a1ca8ecbc51164264efc7dd6debaaa45764950f843acb8",
"slot": 0,
"epoch_mark": {
"entropy": "0x0000000000000000000000000000000000000000000000000000000000000000",
[477234.004522] [Hardware Error]: Corrected error, no action required.
[477234.010885] [Hardware Error]: CPU:1 (19:21:0) MC19_STATUS[Over|CE|MiscV|AddrV|-|SyndV|CECC|-|Poison|Scrub]: 0xdc63493576e03944
[477234.022525] [Hardware Error]: Error Addr: 0x0000000000000000
[477234.028351] [Hardware Error]: IPID: 0x0000000000000000, Syndrome: 0x0000000000000000
[477234.036292] [Hardware Error]: Coherent Slave Ext. Error Code: 32
[477234.036294] [Hardware Error]: cache level: RESV, tx: DATA
[538346.980302] kernel BUG at net/core/skbuff.c:3013!
[538346.985174] invalid opcode: 0000 [#1] SMP NOPTI
[538346.989856] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P O 5.15.104-1-pve #1
[538346.998059] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B550D4U-2T, BIOS L0.05E 07/26/2021
open Qiskit
(* Create the circuit *)
let qc = quantum_circuit 2 2
|> h 0
|> id 1
|> barrier
|> cx 0 1
|> barrier
|> measure 0 0
@dakk
dakk / yallo_medium_1_deploy.yallo
Last active July 7, 2020 12:44
yallo_medium_1_deploy.yallo
import "Token.yallo";
contract deployAToken {
field tokenAddress: address;
entry deployToken() {
let (a: address, op: operation) = Tezos.createContract (Token(Tezos.selfAddress(), 100, "ourToken"), None, 0);
this.tokenAddress = a;
[op]
}
@dakk
dakk / yallo_medium_1_using.yallo
Created July 7, 2020 12:41
yallo_medium_1_using.yallo
import "IToken.yallo";
const tokenContractAddress: address = @KT1ThEdxfUcWUwqsdergy3QnbCWGHSUHeHJq;
contract usingAToken {
field bal: nat;
entry checkBalance(a: address) {
[IToken.of(tokenContractAddress).getBalance(a, this.checkBalanceCallback)]
}
@dakk
dakk / yallo_medium_1_contract.yallo
Created July 7, 2020 12:41
yallo_medium_1_contract.yallo
contract Token implements IToken {
field balances: (address, nat) big_map;
field totalSupply: nat;
field symbol: string;
constructor (owner: address, supply: nat, symbol: string) {
this.balances = [ { owner: supply } ];
this.totalSupply = supply;
this.symbol = symbol;
}
@dakk
dakk / yallo_medium_1_interface.yallo
Created July 7, 2020 12:40
yallo_medium_1_interface.yallo
interface IToken {
entry transfer(from: address, to: address, val: nat);
view getBalance(ad: address): nat;
}
@dakk
dakk / squash-commits.md
Created May 14, 2019 15:07 — forked from longtimeago/squash-commits.md
How to squash commits in a GitHub pull request

How to squash commits in a GitHub pull request

o you've contributed some code to an open source project, say, Rails. And they'd like you to squash all of the commits in your pull request. But you're not a git wizard; how do you make this happen?

Normally, you'd do something like this. I'm assuming upstream is a git remote that is pointing at the official project repository, and that your changes are in your 'omgpull' branch: