Make sure git is intalled
sudo apt install git
Clone the repository from suckless:
#include <stdio.h> | |
#include <stdlib.h> | |
#include <term.h> | |
#include <curses.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) | |
{ | |
int status = 0; |
#include <stdio.h> | |
#include <stdbool.h> | |
static bool is_first_molar(int tooth) | |
{ | |
return tooth % 10 == 6; | |
} | |
static bool is_second_molar(int tooth) | |
{ |
#include <stdio.h> | |
#include <execinfo.h> | |
#include <signal.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
void handler(int sig) { | |
void *array[10]; | |
size_t size; |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
int main( int argc, char* argv[] ) | |
{ | |
char buffer[ 128 ]; | |
time_t now = time(NULL); | |
const char* time_str = ""; |
First, visit any repository on GitHub and click your way through to the issues page.
Create a new issue by clicking the New Issue button. You'll now see title and description fields.
Drag-and-drop an image onto the description field. This will start the uploading process.
Copy the URL and use it in README, issues or pull requests however you like.
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
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
/// <summary> | |
/// Fast exponential approximation. | |
/// </summary> | |
/// <remarks> | |
/// Based on "A Fast, Compact Approximation of the Exponential Function" by Nicol N.Schraudolph (1999) | |
/// <code>e^x ~ a*x + b | |
/// a = 2 ^ (mantissa bits) / ln(2) ~ 12102203 | |
/// b = (exponent bias) * 2^(mantissa bits) ~ 1065353216</code> | |
/// </remarks> | |
/// <param name="x">A number specifying a power.</param> |