Sardine Tree
Sardine tree is a B-tree which keys are small integers, and all the keys in a node can be packed into a single machine word. Integer algorithm exists to find the rank of a target integer in the packed node.
Sardine tree is a B-tree which keys are small integers, and all the keys in a node can be packed into a single machine word. Integer algorithm exists to find the rank of a target integer in the packed node.
Prepare the Setup Backup Surge.app and the profile. Backup the .gnupg folder. Restore Network Restore Surge.app and the profile from the backup. Start Surge to enable the proxy. Set Up Yubikey Install Homebrew…
※ source Single Responsibility Principle Open/Closed Principle: Open for extension, but closed for modification. Liskov Substitution Principle: This is the foundation where interface and inheritance can work. Interface Segregation Principle Dependency Inversion Principle
⌘B: Search in Browser
Tacit knowledge is “knowledge that cannot be captured through words alone”. ― By Cedric Chin ♯ Recognition-Primed Decision Making Model is a way to research the tacit knowledge.
Snippet Unicode Date Format Pattern Result (in a particular locale) yyyy.MM.dd G ‘at’ HH:mm:ss zzz 1996.07.10 AD at 15:08:56 PDT EEE, MMM d, ‘‘yy Wed, July 10, ‘96 h:mm a 12:08 PM hh ‘o’‘clock’ a, zzzz 12 o’clock PM, Pacific Daylight Time K:mm a, z 0:00 PM, PST yyyyy.
Tips ⚡ Making a list of numbers :put =range(11,15) g CTRL-A ⚡ TextExpand in Vim Expand when just switching to the insert mode, type CTRL-v first then type the snippet abbreviation. ⚡ Fix Visual Highlight…
Zmv is a zsh utility to rename files in batch.
Zsh Extended Glob ※ source *, ?: same with .* and . in regular expression. [[:digit:]], [^[:digit:]]: char class. <x-y>: number in the range x to y, inclusive. ## #: similar to the + and * in regular expression.
The function most-significant bit msb(n) returns the index of the highest 1 bit in the integer n. MSB can be resolved using integer algorithm to find the rank in the array of all the powers of 2.