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:
parent
dbc03ae915
commit
068591cd8e
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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__) || \
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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) \
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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__) || \
|
||||
|
@ -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())
|
||||
|
@ -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 => {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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())
|
||||
|
@ -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()))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user