Default

Blog

View archive →
Cover illustration for Build tensorflow on Mac
tensorflow

Build tensorflow on Mac

Building tensorflow from source on mac is really not an easy thing at first. This blog introduces problems met during building.

Cover illustration for How to fill a container?
stl

How to fill a container?

Most of the time we initialize an empty instance of STL containers and keep adding elements to or removing elements from it. For example, we create...

Cover illustration for How to Design a Scalable Rate Limiting Algorithm
system

How to Design a Scalable Rate Limiting Algorithm

任何一个服务在有限资源前提下都会存在处理能力的上限。本文主要描述限流的一些主要算法。

Cover illustration for Revisit compare in map and set
stl

Revisit compare in map and set

map and set are two common associative containers. By default, common data types can be directly used as the key and their comparing method is std:...

Cover illustration for Python closure
python

Python closure

Python closure usually makes code simpified and are used in functional programming style. It starts with a keyword lambda and the last statement is...

Cover illustration for Python contextlib
python

Python contextlib

There are some resources we need to release when we finish our job. It is easy for us to forget those operations. Python has a keyword with which c...

Cover illustration for Move subdirectory of a git repository and keep commit message
tools

Move subdirectory of a git repository and keep commit message

How to extract a subdirectory of a git repository and keep its commit message? If we directly move everything and add them again, we will lose all ...

Cover illustration for Common functions implemented using STL
cpp

Common functions implemented using STL

Cover illustration for SuperTAB and YouCompleteMe compatibility
tools

SuperTAB and YouCompleteMe compatibility

Cover illustration for Generate random numbers in C++
cpp

Generate random numbers in C++

Some times we need a random number for sort or as the input of our program. Previously we can use rand() to generate. Since c++ 11, we have a new w...

Looking for something specific? Browse every article by year, category, or topic.
Explore the archive

© chunyang. Some rights reserved.

Using the Chirpy theme for Jekyll.

stats counter unique visitors since April 2019