Skip to content

Instantly share code, notes, and snippets.

Linking my account geastwood on GitHub with my 0x3edb7060fc184424aeab05afd142f50464406f87 on Ethereum in social-linker-webapp.ci.litentry.io, and the challenge code is: 5001b02b4b9fc2c989b95d31adecdf4e.
@geastwood
geastwood / gist:4493e4589c412553a07c7d9f517c76f2
Created September 20, 2021 11:53
MCP: set profile, show preview card
sequenceDiagram
autonumber
participant U as User
participant E as Browser Extension
participant B as MCP B/E
U-)E: Hover on "Profile picture"
E-)B: relay twitter account to B/E
alt Perform checks
sequenceDiagram
autonumber
participant U as User
participant E as Browser Extension
participant M as MCP App
participant B as MCP B/E
participant T as Twitter
U-)E: Trigger "Set Profile Picture"
E-)M: Redirect to MCP App

Governance App Milestone 1

With this document, we intend to communicate with the community about the Governance App development progress (Milestone 1, original proposal can be found here). This document is divided into the following sections to allow reader to quickly navigate:

  1. Summary
  2. Detail rundowns according to tasks in milestone1
  3. Next steps
  4. Resources

Summary

@geastwood
geastwood / autoswitch.sh
Created November 10, 2019 09:40
Auto switch node version based on `.nvmrc` using fnm
# ZSH
autoload -U add-zsh-hook
# place default node version under $HOME/.node-version
load-nvmrc() {
DEFAULT_NODE_VERSION=`cat $HOME/.node-version`
if [[ -f .nvmrc && -r .nvmrc ]]; then
fnm use
elif [[ `node -v` != $DEFAULT_NODE_VERSION ]]; then
echo Reverting to node from "`node -v`" to "$DEFAULT_NODE_VERSION"
@geastwood
geastwood / chunkwmrc
Last active March 15, 2019 16:38
chunkwm+khd
#!/bin/bash
#
# NOTE: specify the desired level of logging.
#
# - none, debug, warn, error
#
chunkc core::log_level error
@geastwood
geastwood / vm_git_repo
Last active August 29, 2015 14:04
vm git repo
bare clone
create a folder with name new_bare_clone.git
cd new_bare_clone.git
git init --bare
To push to this branch
git remote add origin "ssh://root@88.81.24.209/~/repos/to/folder"
From a local to push up
@geastwood
geastwood / make.md
Last active August 29, 2015 14:03
make
  • make with no argument will run the first rule
  • run multiple tasks by spacing the task names
  • for a detailed example check nodeunit Makefile
@geastwood
geastwood / parsing.md
Last active August 29, 2015 14:03
Rendering Engine

Overview

Parsing a document means translating it to a structure the code can use. The result of parsing is usually a tree of nodes that represent the structure of the document. This is called a parse tree or a syntax tree.

Grammars

Parsing is based on the syntax rules the document obeys: the language or format it was written in. Every format you can parse must have deterministic grammar consisting of vocabulary and syntax rules.

Parser–Lexer combination

Parsing can be separated into two sub processes: lexical analysis and syntax analysis.

Lexical analysis is the process of breaking the input into tokens

Tokens are the language vacabulary: the collection of valid building blocks.