gadgets
A collection of my gadgets.
C/C++
client
: a simple HTTP client that sends requests one byte per second.factory-function
: example of factory functions in C++.bellman-ford
: bellman-ford algorithm.cmake-gtest
: example project of using cmake as its build tool and googletest as its unit test tool.aes-encrypt
: use AES to encrypt a file.x-sudoku
: X-sudoku (diagonal sudoku) solver using forward checking and a little degree heuristic.
Rust
read-utf8
: performcat(1)
on a UTF-8 encoded file.merge-sort
: merge sort algorithm.lcs
: longest common subsequence algorithm.work-assign
: assign jobs to people according to the costs. See its README.csr-bfs
: BFS and bidirectional BFS on a CSR graph.miss-cann
: the missionaries and cannibals problem. (wikipedia page)sound
: use Rust to make some sound.
Python
take-a-break
: a small pop up window to remind you to take a break. You can use it with cron.crawl-emoji
: crawl emojis from wikipedia page.