adapted from this blog
# YAML
name: Jon# YAML
object:| /* | |
| * Example of a singleton design pattern. | |
| * Copyright (C) 2011 Radek Pazdera | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * This program is distributed in the hope that it will be useful, |
| #include <iostream> | |
| #include <iomanip> | |
| // | |
| // Utilities | |
| // | |
| // RETURNS() is used to avoid writing boilerplate "->decltype(x) { return x; }" phrases. | |
| // | |
| // USAGE: auto function(<arguments>) RETURNS(<some-expression>); | |
| // |
adapted from this blog
# YAML
name: Jon# YAML
object:| """ | |
| Simple xml serializer. | |
| @author Reimund Trost 2013 | |
| Example: | |
| mydict = { | |
| 'name': 'The Andersson\'s', | |
| 'size': 4, |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "sort" | |
| ) | |
| // askForConfirmation uses Scanln to parse user input. A user must type in "yes" or "no" and | |
| // then press enter. It has fuzzy matching, so "y", "Y", "yes", "YES", and "Yes" all count as | |
| // confirmations. If the input is not recognized, it will ask again. The function does not return |
| #!/bin/bash | |
| ## Install Golang Stable 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS) | |
| ## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html | |
| ## Run as root (sudo su) | |
| ## Thank's @geosoft1 | @gwmoura | |
| GO_URL="https://go.dev/dl" | |
| GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text'|head -n1) | |
| GO_FILE="$GO_VERSION.linux-amd64.tar.gz" |
| /* MIT License | |
| * | |
| * Copyright (c) 2017 Roland Singer [roland.singer@desertbit.com] | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: |
Gravizo is a really cool tool to display graphs in your README.
Lately, none of their examples seem to be working for me. I don't like using the
indirect method,
because it means that if the indirect breaks or is no longer public or whatever, who
| /* | |
| # Released under MIT License | |
| Copyright (c) 2017 insaneyilin. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
| associated documentation files (the "Software"), to deal in the Software without restriction, | |
| including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
| sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft