Gist
Awesome code snippets will be recorded here in my Gist.
- mathjax.html: 在 markdown 中引用 mathjax 渲染数学公式
- vscode-snippets: code snippets in visual studio code, maintenanced by myself
- pac.txt: pac.txt used in shadowsocks, maintenanced by myself
- crc.py: CRC 校验
- lru.cpp: LRU Cache
- findKthSmallest.cpp: find the Kth smallest number in two sorted arrays
- sqrt.py: Newton’s iteration for sqrt
- cycle.cpp: find cycle beginning in list with cycle
- binary-tree-traversal.cpp: Binary Tree Traversal of Iteration (non-recursion)
- print_ABC.java: Five approaches to orint “ABC” 10 times in sequence using 3 threads in Java
- double_parser.py & cpp: 1. print double type value to binary/hexadecimal expression in c++ 2. double parser for converting binary to double in Python
- NewPasswordUtil.java: Generate a SALT in Java for Salted-Hash.
- navbar.html: A universal navbar template
- json.js: 【jQuery】Convert form to json
- fetch.js: Simple fetch() sample