Info on aa-notify
: https://man.archlinux.org/man/aa-notify.8.en
Run aa-notify --help
and get error:
Traceback (most recent call last):
/* | |
* Print a list of 256 random RGB colors, | |
* except some colors at front of list are predetermined. | |
* Also prints the seed used (epoch time in seconds). | |
* R component is first. | |
* Colors are at least a certain distance apart. | |
* May fail to find a color that is not too close | |
* to previously generated colors, then the program prints and exits. | |
* Takes no arguments. | |
* |
https://github.com/ziglang/zig/wiki/Community-Projects | |
https://github.com/nrdmn/awesome-zig | |
https://aquila.red/ | |
https://zig.pm/ | |
https://astrolabe.pm/ | |
https://github.com/zigforum/needed-libraries |
/* | |
* File: stacksize.c | |
* Author: Costava | |
* | |
* Example compilation: | |
* gcc stacksize.c -o stacksize -std=c89 -Wall -Wextra -Wconversion | |
*/ | |
#include <stdint.h> | |
#include <stdio.h> |
let foo = {num: 11}; | |
let bar = {num: 22}; | |
foo.other = bar; | |
bar.other = foo; | |
let myList = [foo, bar]; | |
JSON.stringify(myList); // Fails | |
// Firefox 89: Uncaught TypeError: cyclic object value |
/* | |
* Example compilation: | |
* gcc enum_no_warnings.c -std=c99 -Wall -Wextra -Wconversion | |
*/ | |
enum food { | |
BANANA = 1, | |
CARROT = 2, | |
ORANGE = 3 | |
}; |
// | |
// File: sscanf_overflow.c | |
// Author: Costava | |
// | |
// If sscanf is given a string of an integer greater than INT_MAX, | |
// sscanf will still return 1 even though the integer cannot have been | |
// read correctly into the given variable. | |
// | |
// errno gets set to ERANGE | |
// errno can be checked to see if sscanf actually succeeded. |
Info on aa-notify
: https://man.archlinux.org/man/aa-notify.8.en
Run aa-notify --help
and get error:
Traceback (most recent call last):
/* | |
* output_grid_image.c | |
* | |
* Print to stdout a P6 .ppm image of a grid. | |
* Specify the sizing and color of the grid in the user-defined values section, | |
* then compile and run. | |
* Program returns 0 on success. | |
* 1 if error allocating memory or outputting to stdout. | |
* | |
* Example compilation: |
// Return random string of given length. | |
// Use Math.random function. | |
function mathRandomString(length) { | |
const set = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
let result = ""; | |
for (let i = 0; i < length; i += 1) { | |
result += set[Math.floor(Math.random() * set.length)]; | |
} |
/* | |
* caesarshiftall.c | |
* | |
* Print the given string and all of its shifted variations. | |
* Print a newline after each. | |
* Return 0 on success. | |
* Return non-zero on failure. See ERROR_ defines. | |
* | |
* Example compilation: | |
* gcc caesarshiftall.c -o caesarshiftall -std=c89 -Wall -Wextra -Wconversion |