Skip to content

Instantly share code, notes, and snippets.

@danjm
danjm / gist:d636cbe4c40318c892ee8f1fd1342143
Last active June 3, 2021 11:54
Checking the dependency tree of `manifest`, `getPublicKey`, `ethereumSignTransaction`, `ethereumSignMessage` in trezor-connect

git clone git@github.com:trezor/connect.git

yarn

Then run this code:

import path from 'path';
import { collectImportsSync } from 'babel-collect-imports';
import _ from 'lodash';
@danjm
danjm / Untitled.sol
Created May 15, 2020 17:54
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.2+commit.bacdbe57.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract PiggyBank {
uint private balance;
address public owner;
function PiggyBank() public {
owner = msg.sender;
balance = 0;
}
{"elements":[{"name":"Speaker Eleven","description":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","tags":["Speaker","Facilitator"]},{"name":"Speaker Two","description":"I like to talk about moon rocks and pasta sauce.","tags":["Facilitator","Workshop"]},{"name":"Speaker Three","description":"I run sessions that help teams do great potlucks.","tags":["Speaker","Workshop"]},{"name":"Speaker One","description":"I facilitate when the going gets tough.","tags":["Facilitator"]},{"name":"Speaker Five","description":"Speaking about the number 5.","tags":["Speaker"]},{"name":"Speaker Six","description":"Speaker six.","tags":["Speaker"]},{"name":"Foo Bar","description":"Foo bar.","tags":["Workshop"]},{"name":"Cookie Monster","description":"C is for cookie.","tags":["Speaker","Facilitator"]},{"name":"Speaker Twenty","description":"Twenty Twenty.","tags":["Facilitator"]},{"name":"Test User","description":"Test user","tags":["Workshop"]},{"name":"Tall Tree","description":"Tall tree.","tags":["Facilitator"]},{"name"
0x02f567704cc6569127E18E3d00D2c85bcBFa6f0a
var _ = require('lodash')
_.each(
_.uniqBy(_.flatMap(
_.merge(_.groupBy(_.keys(_), _.head), _.groupBy(_.keys(_), _.last)),
_.rearg(_.over(_.identity, _.toUpper), _.toInteger(_.stubTrue()))
)),
_.flow(
_.over(_.stubObject, _.identity, _.constant),
_.spread(_.set),
@danjm
danjm / gthw
Created February 10, 2015 16:00
Gist Test: Hello World
var hello = "Hello";
var world = "World!";
document.write(hello+" "+world);