This file contains hidden or 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
Hey, I'm nichanank-15038946 and I have contributed to the EmailApprover MPC Phase2 Trusted Setup ceremony. | |
The following are my contribution signatures: | |
Circuit # 1 (emailapprover) | |
Contributor # 31 | |
Contribution Hash: 7e43b817 74c56653 647a492c eeca9e6a | |
b58adeee 0c39195d 2b7eabd6 86322426 | |
c4366c44 3d2e3069 59290957 310ed4e6 | |
ce9080aa 7b92271d dedc848d ec97ab2e |
This file contains hidden or 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
""" | |
This is an adapted version of the original ByteBracket library https://gist.github.com/pursuingpareto/b15f1197d96b1a2bbc48 that was implemented to score a 63-game NCAA tournament | |
Whitepaper: https://drive.google.com/file/d/0BxHbbgrucCx2N1MxcnA1ZE1WQW8/view | |
""" | |
import random | |
def score(bracket, results, filt, | |
teams_remaining, blacklist, round_num=0): | |
""" |
This file contains hidden or 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
// this returns two arrays, one containing Streams where the user was the sender (senderStreams) and another in which the user was a recipient (recipientStreams) | |
const MY_STREAMS = gql` | |
query streams($account: String!) { | |
senderStreams:streams(where: {sender: $account}){ | |
id | |
recipient | |
deposit | |
startTime | |
stopTime |
This file contains hidden or 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
// yarn add bignumber.js | |
// import BigNumber from 'bignumber.js' | |
// BigNumber.config({ EXPONENTIAL_AT: 30 }) <--- add this after your imports, it will prevent the number from being formatted like "1e+21" | |
// call this when the user presses the "Create Stream" button | |
const sablier = new ethers.Contract(addresses[chainId].sablier, abis.sablier, getProviderOrSigner(library, account)) | |
let convertedStartTime = Math.round(startTime.getTime() / 1000) | |
let convertedStopTime = Math.round(stopTime.getTime() / 1000) | |
let convertedDeposit = new BigNumber(deposit).multipliedBy(10 ** 18).toFixed(0) |
This file contains hidden or 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 { InjectedConnector } from "@web3-react/injected-connector"; | |
export const injected = new InjectedConnector({ | |
supportedChainIds: [1, 3, 4, 5, 42] | |
}); |
This file contains hidden or 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
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreibn3rl2n2q5drt7pnphd3r443vgxj3hbliora4vfzqpnbns3orhj4 ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains hidden or 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
// from FCC | |
function sumPrimes(num) { | |
var numberList = [] | |
for (var i = 2; i <= num; i++) { | |
numberList.push(i) | |
} | |
let nonPrimes = [] |
This file contains hidden or 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
// from FCC | |
function checkCashRegister(price, cash, cid) { | |
const totalCash = cid.reduce((total, value) => { | |
return total + value[1] | |
}, 0) | |
var units = [ | |
0.01, | |
0.05, | |
0.1, |
This file contains hidden or 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
Verifying my Blockstack ID is secured with the address 1DLPSS7WKuZpBHLJpJE43qbhGvYgqPBT4m https://explorer.blockstack.org/address/1DLPSS7WKuZpBHLJpJE43qbhGvYgqPBT4m |
This file contains hidden or 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
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:muport:Qmbm2Kef3nXtvmRTM7cmSgWgqJJH5fZqKyYPaPTiKD1Nkv ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
NewerOlder