Skip to content

Instantly share code, notes, and snippets.

View adrianmcli's full-sized avatar
:shipit:
What's happening?

Adrian Li adrianmcli

:shipit:
What's happening?
View GitHub Profile
@adrianmcli
adrianmcli / PARTNER_CRITERIA.md
Last active January 20, 2024 17:57
A list of personality criteria that future partners must have.

Partner Personality Criteria

All partners should have, to some degree, substantially all of the following personality traits:

  1. A partner should be a self-starter. He should, without prompting, take (or offer to take) initiative and pick up slack for work that may not fall into his own designated domain.

  2. A partner should be conscientious, thorough, and judiciously meticulous. In the context of his responsibilities, he should be expected to thoroughly examine all available options in the world and be able to justify any action or in-action in regards to his responsibilities.

    • Being the expert. He should be able to communicate an analysis of the most up-to-date state of the world, under his designated domain, such that he can give the team a broad but nevertheless exhaustive overview of his domain.
  • Offering alternatives. If an initial analysis or the conclusion of such analysis proves to be difficult for meeting our team's needs, he should have prepared an analysis of alterna
@adrianmcli
adrianmcli / _README.md
Last active August 14, 2023 17:19
Files in EthereumBook containing reference to Truffle products

The following commands were run to find the number of files related to Truffle products based on a case-insensitive search:

➜  ethereumbook git:(develop) ✗ git grep -i --files-with-matches 'truffle' | wc -l
      51
➜  ethereumbook git:(develop) ✗ git grep -i --files-with-matches 'ganache' | wc -l
      13
➜  ethereumbook git:(develop) ✗ git grep -i --files-with-matches 'drizzle' | wc -l
       0
@adrianmcli
adrianmcli / rln-trusted-setup-ceremony_attestation.log
Created August 1, 2023 06:02
Attestation for RLN Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm adrianmcli-943555 and I have contributed to the RLN Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (rln-withdraw)
Contributor # 8
Contribution Hash: ebbe0047 4d2bdce5 30dc5990 c271462f
aba6770d c33abf4c 17698c9e 1d35d8de
91a73ef3 324f0899 1b741bc0 8ce05488
5a6287e7 953f958f d2510682 8d974c2b
@adrianmcli
adrianmcli / Spinner.js
Created December 3, 2017 01:26
Dead simple loading spinner with just CSS in styled-components.
import styled, { keyframes } from "styled-components";
const rotate360 = keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
@adrianmcli
adrianmcli / tutorial-refactor.js
Created January 6, 2017 19:24
A refactor of André Staltz's example twitter program in his tutorial on RxJS: https://gist.github.com/staltz/868e7e9bc2a7b8c1f754
// UI Event Streams --------------------------------------------
const refreshButton = document.querySelector('.refresh');
const closeButton1 = document.querySelector('.close1');
const closeButton2 = document.querySelector('.close2');
const closeButton3 = document.querySelector('.close3');
const refreshClickStream = Rx.Observable.fromEvent(refreshButton, 'click');
const close1ClickStream = Rx.Observable.fromEvent(closeButton1, 'click');
const close2ClickStream = Rx.Observable.fromEvent(closeButton2, 'click');
const close3ClickStream = Rx.Observable.fromEvent(closeButton3, 'click');
@adrianmcli
adrianmcli / compile.js
Last active September 29, 2022 14:33
Programmatically compile and deploy Solidity smart contracts for your tests
const path = require("path");
const fs = require("fs");
const TruffleCompile = require("truffle-compile");
// Promisify truffle-compile
const truffleCompile = (...args) =>
new Promise(resolve => TruffleCompile(...args, (_, data) => resolve(data)));
const compile = async filename => {
const sourcePath = path.join(__dirname, "../contracts", filename);
{"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context":
[
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" },
{ "match_all": true, "key": "selection_empty" },
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" },
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" },
{ "match_all": true, "key": "is_abbreviation" }
]
}
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"ecmaFeatures": {
"modules": true,
"jsx": true
@adrianmcli
adrianmcli / BASK_PID_UMIP_DRAFT.md
Created May 16, 2021 01:29
Draft UMIP for BASK's KPI Options

HEADERS

UMIP-XX
UMIP Title Add BASKUSD and BDIDPI_MCAP_DIFF as supported price identifiers
Authors Adrian Li
Status Draft
Created 2021-05-15
Discourse Link INSERT DISCOURSE LINK HERE