Reference - https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get install libgtest-dev
sudo apt-get install cmake # install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
| // Go encourages us to organize our code using goroutines and to use | |
| // channels of channels to implement request-response semantics [1]. | |
| // | |
| // I have encountered far more instances that require acknowledgment | |
| // than fully-fledged respones so I became curious whether channels | |
| // of channels were indeed the best implementation strategy. | |
| // | |
| // In summary, yes, they are. These benchmarks demonstrate that | |
| // channels perform better than mutexes, that condition variables are | |
| // still clumsy, and that preallocation is a huge win when and if you |
Reference - https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get install libgtest-dev
sudo apt-get install cmake # install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
| <?php | |
| /** | |
| * GitHub webhook handler template. | |
| * | |
| * @see https://developer.github.com/webhooks/ | |
| * @author Miloslav Hůla (https://github.com/milo) | |
| */ | |
| $hookSecret = 's.e.c.r.e.t'; # set NULL to disable check |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| function git_prompt_info() { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
| } |