CoolMind


If you cannot measure it, you cannot improve it.

std::ifstream in cpp

Introduction A simple example Common interfaces Open & close Status related Read data Position related ...

Python File related IO

Introduction open io module io.StringIO/io.BytesIO io.open An interesting example Summary Reference Introduc...

functools in Python

Introduction wraps cmp_to_key partial total_ordering reduce Introduction functools like itertool is very useful, but we pay little ...

abc module in Python

Introduction abc Module collections.abc Module Animal example AwesomeSequence Recommended reading: Introduction abc is short for Ab...

String in cpp

Introduction Convert to and from numbers Convert a number into a string Convert a number from a string Construct a s...

Notes about making Github pages beautiful

Introduction Auto TOC Highlight Anchor Comment Introduction More and more people are using Github pages as their personal website. Git...

Python descriptor

Property Descriptor Recently in my project, I need to dynamically add property to an instance. It is easy that any class can support it. c...

Dijkstra's 3-way quick sort

Quick-sort is one of the greatest inventions. Most of the time, its time complexity is O(nlogn). However, when the input array contains lots of dup...