Skip to content

Instantly share code, notes, and snippets.

@luoser
luoser / .zshrc
Last active March 10, 2023 15:25
felisa's favorite aliases etc
# git
alias ga='git add'
alias gd='git diff'
alias gp='git push'
alias gpo='git push origin'
alias gc='git commit'
alias gca='git commit -a'
alias gcm='git commit -m'
alias gmo='git merge origin'
alias gco='git checkout'
/**
* Find the ENS user if they exist 🤠
*
* @param inputAddress ETH address or ENS name string or any input
* @param provider Ethereum provider (see https://docs.ethers.io/v5/api/providers/)
* @param isLoadingUser callback loading state; sometimes it takes a sec to read from ye holy blonkchain
* @returns nullable User with address, username, and imageUrl
*/
export async function findENSUser(
inputAddress: string,

Keybase proof

I hereby claim:

  • I am luoser on github.
  • I am luoser (https://keybase.io/luoser) on keybase.
  • I have a public key ASAPi86Mb4DT46D9jeyqjcDXtwr_ysj57u7wg38r8MIQ2go

To claim this, I am signing this object:

@luoser
luoser / input-output-vm-example.java
Created December 11, 2017 07:20
example for blog post
// view model constructor
this.startProjectActivity = this.projectCardClicked;
// activity’s onCreate()
this.viewModel.outputs.startProjectActivity()
.subscribe(this::startProjectActivity);
// activity’s helper function
@OnClick(R.id.view)
public void projectCardClicked() {