Skip to content

Instantly share code, notes, and snippets.

View 0xJchen's full-sized avatar
🎯
Focusing

Jiachen Wang 0xJchen

🎯
Focusing
View GitHub Profile
@0xJchen
0xJchen / throttledebounce.go
Created January 12, 2024 01:34 — forked from haleyrc/throttledebounce.go
Throttle and debounce implemented in Go
// This gist is a reminder to myself about the differences between throttling and debouncing, inspired by
// https://redd.one/blog/debounce-vs-throttle
//
// A runnable example is available here: https://play.golang.org/p/sADDu829fRa
package main
import (
"fmt"
"time"
)
@0xJchen
0xJchen / bridge_hacks.md
Created July 15, 2023 20:57 — forked from cwhinfrey/bridge_hacks.md
Bridge Hack List
@0xJchen
0xJchen / git_newrepo
Created March 24, 2023 21:55 — forked from c0ldlimit/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@0xJchen
0xJchen / OrderFlow.ipynb
Created January 31, 2023 21:59 — forked from sebjai/OrderFlow.ipynb
Optimal trading with order-flow and short-term alpha
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0xJchen
0xJchen / detect.py
Created January 17, 2021 14:03 — forked from buptczq/detect.py
QQ URL detect
import hashlib
import struct
import sqlite3
def md5hash(buf):
return hashlib.md5(buf.encode("utf-16")[2:]).digest()
def md5cmp(buf, postfix, a1, a2, a3, a4):
if len(buf) < postfix:
return False