Fibonacci 200M in 2 Minutes

Posted on Fri 16 December 2022 in tech • Tagged with programming, fibonacci, prime, go

Fibonaccis

F(200M) in 2 minutes! Apple arm64 is no joke. You can do it yourself with Go Fib


Even More Intense Soft Ginger Cookie

Posted on Thu 15 December 2022 in food • Tagged with cookies, recipe, ginger, yule, christmas, pepper, cayenne

It's about that time of year to update cookie recipes, isn't it?

This is a flavorful soft ginger cookie. I developed this recipe because I find many gingersnap recipes to have too little ginger flavor and intensity. This cookie has the perfect balance of flavor and intensity.

Soft Ginger Cookie


Continue reading

@collectivexyz/governance

Posted on Tue 13 December 2022 in tech • Tagged with TypeScript, npmjs, web3, Ethereum, governance

@collectivexyz just published @collectivexyz/governance

Install from command line:

 $ npm install @collectivexyz/governance

Install using yarn:

 $ yarn add @collectivexyz/governance

Usage

Simple example to connect to a governance contract.

import { EthWallet, Governance, GovernanceBuilder, CollectiveGovernance } from '@collectivexyz/governance';
import Web3 from 'web3';

export async function connect(): Promise<Governance> {
  try {
    const rpcUrl …

Continue reading

History: Messiah

Posted on Sun 11 December 2022 in history • Tagged with definition, dictionary

The Messiah is a figure held in Jewish thought who is anticipated to be the savior of the Hebrew people. Christians believe that Jesus of Nazareth, 6 BCE- 30 CE , was the Messiah, however most Jews do not accept that Jesus was a Messiah.


Find event from Transaction Receipt

Posted on Sat 10 December 2022 in tech • Tagged with ethereum, solidity, typescript, ethers

Here is a trivial example that finds an event from a Transaction Receipt in ethers js.


Continue reading

Find past events in ethers js

Posted on Thu 08 December 2022 in tech • Tagged with ethereum, solidity, typescript, ethers

Although there are examples of getting events from a particular transaction using ethers js. I found it fairly difficult to find an example that searches for events from a particular block or transaction. Here is a code to do just that:


Continue reading