Skip to content

Instantly share code, notes, and snippets.

Avatar

Eddie Wang eddiewang

View GitHub Profile
View kilo-grav-cni.yml
apiVersion: v1
kind: ConfigMap
metadata:
name: kilo
namespace: kube-system
labels:
app.kubernetes.io/name: kilo
data:
cni-conf.json: |
{
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View gist:47901b8a0841ade8228831403fe37b66
Verifying my Blockstack ID is secured with the address 1JcvN4prFJbAyGnx25Sh65FigXeYYkpvsT https://explorer.blockstack.org/address/1JcvN4prFJbAyGnx25Sh65FigXeYYkpvsT
View gist:befcc9cd965d20264af03f4d0af68e63
import { toChecksumAddress } from 'ethereumjs-util';
import { RawTransaction } from 'libs/transaction';
import WalletAddressValidator from 'wallet-address-validator';
import { normalise } from './ens';
import { Validator } from 'jsonschema';
import { JsonRpcResponse } from './nodes/rpc/types';
import { TokenValue } from 'libs/units';
export function isValidETHAddress(address: string): boolean {
if (!address) {
@eddiewang
eddiewang / 0x72948fa4200d10ffaa7c594c24bbba6ef627d4a3
Created Nov 19, 2017
0x72948fa4200d10ffaa7c594c24bbba6ef627d4a3
View 0x72948fa4200d10ffaa7c594c24bbba6ef627d4a3
0x72948fa4200d10ffaa7c594c24bbba6ef627d4a3
View keybase.md

Keybase proof

I hereby claim:

  • I am eddiewang on github.
  • I am eddiewang (https://keybase.io/eddiewang) on keybase.
  • I have a public key whose fingerprint is EFDF 6E24 2698 5473 55F0 3A1D 31F8 A0F5 B5EB 74A1

To claim this, I am signing this object:

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View 0-startup-overview.md
View icons.sh
show_icons() {
defaults write com.apple.finder CreateDesktop true
killall Finder
}
hide_icons() {
defaults write com.apple.finder CreateDesktop false
killall Finder
}