Posts
Golang Notes
· โ˜• 21 min read · โœ๏ธ k4i
This is my notes on learning golang.
Golang Notes
C++ Smart Pointers
· โ˜• 6 min read · ๐Ÿฆ‚ k4i

Smart pointer is a practice of RAII (Resource Acquisition is Initialization), we use a smart pointer to manage memory allocated on the heap. (here the “resource” is the allocated heap memory)

Openssl Notes
· โ˜• 1 min read · ๐Ÿฆ‚ k4i

my openssl cheatsheet.

HKDF
· โ˜• 1 min read · ๐Ÿฆ‚ k4i

HMAC-based KDF(key derivation function)

Shuffling
· โ˜• 2 min read · ๐Ÿฆ‚ k4i

How to generate a random sequence (permutation) of a finite sequence.

Sampling
· โ˜• 2 min read · ๐Ÿฆ‚ Kyle

How to select k out of N objects.

Hugo, Deploy With Github Actions
· โ˜• 2 min read · ๐Ÿฆ‚ Kyle

I used to think deploying my blog with github actions is unnecessary, but now… (็œŸ้ฆ™)
Deploying with github actions is so much faster.

Matrix Fast Pow
· โ˜• 5 min read · ๐Ÿฆ‚ Kyle

Use matrix and fast pow together can make some problems much easier.

Knapsack Problems
· โ˜• 3 min read · ๐Ÿฆ‚ Kyle

knapsack problem and its variations

Ncurses Note
· โ˜• 2 min read · ๐Ÿฆ‚ Kyle

The Curses library forms a wrapper over working with raw terminal codes, and provides highly flexible and efficient API (Application Programming Interface). It provides functions to move the cursor, create windows, produce colors, play with mouse etc. The application programs need not worry about the underlying terminal capabilities

Writing Guide
· โ˜• 3 min read · ๐Ÿฆ‚ Kyle
Guides on how to write your contents using this theme (my cheatsheet).
Wargames Bandit
· โ˜• 1 min read · ๐Ÿฆ‚ Kyle
my solutions to the bandit wargame: https://overthewire.org/wargames/bandit/
Wargames Bandit
De Bruijn Sequence
· โ˜• 4 min read · ๐Ÿฆ‚ Kyle

A de Bruijn sequence of order n on a size-k alphabet A is a cyclic sequence in which every possible length-n string on A occurs exactly once as a substring.

For a de Bruijn sequence of order n on a size-k alphabet $A$, we denote it by $B(k, n)$

cin & cout is slow?
· โ˜• 3 min read · ๐Ÿฆ‚ Kyle
is or why is cin, cout slow in C++?