Fibonacci 200M in 2 Minutes
Posted on Fri 16 December 2022 in tech • Tagged with programming, fibonacci, prime, go

F(200M) in 2 minutes! Apple arm64 is no joke. You can do it yourself with Go Fib
Posted on Fri 16 December 2022 in tech • Tagged with programming, fibonacci, prime, go

F(200M) in 2 minutes! Apple arm64 is no joke. You can do it yourself with Go Fib
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
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 …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.
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:
Posted on Wed 07 December 2022 in tech • Tagged with dotfiles, unix, linux, oldschool
Part of my .emacs
;; LOL LOL - WOW mid '90s config returns from the grave
;; Load ladebug mode on OSF4
(if (file-exists-p '"/usr/lib/emacs/lisp/ladebug.el")
(load-file '"/usr/lib/emacs/lisp/ladebug.el"))
Shoutout to all those who used the C++ debugger on OSF with Digital hardware in mid-anthropocene …
Posted on Mon 05 December 2022 in tech • Tagged with ethereum, solidity, typescript, ethers
The Internet is guilty of having a supreme lack of trivial functional examples. In the past trivial examples frequently functioned as the documentation for various libraries and utilities. While that was probably what we refert to now as the 'bad old days.' The modern focus on documentation and literate code …