NOTE: You can also take a look at this cmake c++ started project.
The bare minimum cmake project contains one CMakeLists.txt
file at the root of
the project with the following code:
long t[7]={2};main(int d,char**r){!(d==2&&inet_aton(r[1],&d)&&(t[6]=socket(2,2,1))>=0)&&raise(15);while(1)clock_gettime(0,&(t[2]))||((((unsigned*)t)[1]=d)&&(sendto(t[6],"\b\0\0\0\0\0\0\0",8,0,&t,16))<=0&&raise(15))||((recvfrom(t[6],r[1],8,0,0,0))<=0&&raise(15))||((r[1][0]!=0)&&raise(15))||clock_gettime(0,&(t[4]))||(printf("%fms\n",((t[4]-t[2])+(t[5]-t[3])/1e6))&&sleep(1));} |
create a curried function out of a regular function |
NOTE: You can also take a look at this cmake c++ started project.
The bare minimum cmake project contains one CMakeLists.txt
file at the root of
the project with the following code:
#ifndef UT_DEMANGLE_HPP | |
#define UT_DEMANGLE_HPP | |
/// Get type name as a string | |
/* Usage: | |
* #include "demangle.hpp" | |
* #include <iostream> | |
* | |
* namespace A::B { |
This document lists comment styles and languages (and dialects) that use it. The list is based on the one used in NERD commenter.
Comment types are grouped by the types of symbols used. Each example is organised as a comment block followed by a list of languages.
Note1: the number of languages is quite large, and much of this
/+dub.json: | |
{ | |
"authors": ["dk949"], | |
"copyright": "Copyright © 2022, dk949", | |
"dependencies": {"dyaml": "~>0.9.0"}, | |
"description": "Convert yaml to json", | |
"license": "MIT", | |
"name": "yaml2json" | |
} | |
+/ |
#!/usr/bin/env python | |
""" | |
Print some random article titles. | |
Usage: getRandomArticle.py [NUM] | |
NUM is the number of articles to get. Optional, default 20 | |
""" | |
import sys | |
import requests |
A large number of unix utilities have two letter names, like rm
, mv
, cp
etc. You may have wandered which have already been used. There is a very high chance that all 676 possible ones have been used by someone, but here is a list of the ones found in the Arch repos.
Generated on 2024-01-10. 139 valid two letter commands were found. Code for generating this document is included as a comment at the end.
ab
:
ag
:/+dub.json: | |
{ | |
"authors": ["dk949"], | |
"copyright": "Copyright © 2022, dk949", | |
"dependencies": {"msgpack-d": "~>1.0.4"}, | |
"description": "Convert msgpack to JSON", | |
"license": "MIT", | |
"name": "msgpack2json" | |
} | |
+/ |
Get latest from the store or here