Category: tricks
Let’s say our task is to convert a set or unordered_set in C++ to std::vector, what would you do? Given the following set with integers (or other types) unordered_set<int> …
Sometimes, you might want to provide visitors to navigate to next or previous posts quickly by using keyboard arrow keys. You might place the navigate links in the post …
We have seen many drawing of hearts using math equations and , the following demonstrates how to draw (or make) a heart using the pure CSS3 techniques. First, you …
For some PPTs (Microsoft PowerPoint) that you downloaded, you can’t basically open them. These generally are the PPT presentations created by earlier versions of Microsoft Powerpoints e.g. 97 to …
Each post in the wordpress is associated with an ID, so you could get its previous and next post which contains the adjacient posts. The wordpress function get_previous_post retrieves …