1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-04-09 19:29:05 +05:30

relicense everything under CC0-1.0 or Unlicense, add SPDX ID

This commit is contained in:
パチュリー・ノーレッジ 2024-07-15 00:03:15 +03:00
parent dbc03ae915
commit 068591cd8e
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B
41 changed files with 82 additions and 41 deletions

View File

@ -6,7 +6,8 @@
* TODO: Use fixed point arithmetics
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "clock_hr_microsec.h"

View File

@ -2,7 +2,8 @@
* clock_hr_microsec.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _CLOCK_HR_MICROSEC_H

View File

@ -2,7 +2,8 @@
* bool-operations.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <inttypes.h>

View File

@ -9,7 +9,8 @@
* - exponential growth of time
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <limits.h>

View File

@ -32,7 +32,8 @@
*
* The license information of the added code and this modification:
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <ctype.h>

View File

@ -23,7 +23,8 @@
* TODO: Test: Automate the test verification
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <errno.h>

View File

@ -2,7 +2,8 @@
* static-vs-dynamic-mem-alloc.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <stdint.h>

View File

@ -14,7 +14,8 @@
* the input reading loop to avoid input queues
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "freadln.h"

View File

@ -2,7 +2,8 @@
* freadln.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _FREADLN_H

View File

@ -2,7 +2,8 @@
* fwrite_le.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "fwrite_le.h"

View File

@ -2,7 +2,8 @@
* fwrite_le.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _FWRITE_LE_H

View File

@ -2,7 +2,8 @@
* pure_getline.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "pure_getline.h"

View File

@ -2,7 +2,8 @@
* pure_getline.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _PURE_GETLINE_H

View File

@ -2,7 +2,8 @@
* brexit.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#if !(defined(unix) || defined(__unix) || defined(__unix__) || \

View File

@ -4,7 +4,8 @@
* NOTE: PulseAudio: Pipe STDOUT of this program to aplay -c 1 -f U8 -r 44100
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <stdio.h>

View File

@ -2,7 +2,8 @@
* extol.c [joke!]
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <stdbool.h>

View File

@ -4,7 +4,8 @@
* A modern C version of extol.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <stdbool.h>

View File

@ -4,7 +4,8 @@
* Useful for showing big-endian hexadecimal dumps on little-endian machines
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#define BE_TO_LE_PTR(base, size, i) \

View File

@ -6,7 +6,8 @@
* NOTE: This code will work only on a computer that uses bits.
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _OPT_INT_DIV_H

View File

@ -4,7 +4,8 @@
* "Optimized integer division"
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "opt_int_div.h"

View File

@ -10,7 +10,8 @@
* f=lib/memset_explicit.c;hb=refs/heads/stable-202301
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _SAFE_MEM_H

View File

@ -2,7 +2,8 @@
* safe_mem.test.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <stdio.h>

View File

@ -2,7 +2,8 @@
* asprintf.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "asprintf.h"

View File

@ -2,7 +2,8 @@
* asprintf.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _ASPRINTF_H

View File

@ -2,7 +2,8 @@
* portable_basename.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "portable_basename.h"

View File

@ -2,7 +2,8 @@
* portable_basename.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _PORTABLE_BASENAME_H

View File

@ -4,7 +4,8 @@
* Also compile `portable_basename.c` and `../benchmarking/clock_hr_microsec.c`
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include <inttypes.h>

View File

@ -4,7 +4,8 @@
* TODO: Add the ability to replace from the end
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "str_replace.h"

View File

@ -2,7 +2,8 @@
* str_replace.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _STR_REPLACE_H

View File

@ -2,7 +2,8 @@
* string_case.c
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#include "string_case.h"

View File

@ -2,7 +2,8 @@
* string_case.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#ifndef _STRING_CASE_H

View File

@ -7,7 +7,8 @@
*
* The following license information applies for the modifications:
* Author: Intel A80486DX2-66
* License: Unlicense
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
#if !(defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || \

View File

@ -2,7 +2,8 @@
* busy-loop-delay.js
*
* Author: Intel A80486DX2-66
* License: Creative Commons Zero 1.0 Universal
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
let measureEpoch = () => Number(new Date())

View File

@ -15,7 +15,8 @@
* headers
*
* Author: Intel A80486DX2-66
* License: Creative Commons Zero 1.0 Universal
* License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/
const generateAudio = t => {

View File

@ -7,7 +7,8 @@
# The video game Baldi's Basics Plus is created by Basically Games
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from dotenv import load_dotenv
from os import environ, listdir, makedirs

View File

@ -3,7 +3,8 @@
# generate_C_lang_token.py
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from random import choice
from string import ascii_lowercase, ascii_uppercase, digits

View File

@ -5,7 +5,8 @@
# TODO: Add interactive mode
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from datetime import datetime
from difflib import unified_diff

View File

@ -3,7 +3,8 @@
# ASCII_to_CJK.py
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
ASCII_to_CJK = {
" ": "\u3000",

View File

@ -3,6 +3,7 @@
# base64_text_decode.py
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
print(__import__("base64").b64decode(input()).decode())

View File

@ -3,7 +3,8 @@
# get_unix_epoch_seconds.py
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
print(__import__("math").floor(__import__("datetime").datetime.now().\
timestamp()))

View File

@ -3,7 +3,8 @@
# year_2038_bug.py
#
# Author: Intel A80486DX2-66
# License: Unlicense
# License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from ctypes import c_int, sizeof
from datetime import datetime, timedelta