This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set -e | |
#usage old_directory new_directory | |
modfiles=$(find ${2} -type f -exec grep -Iq . {} \; -print) | |
#origfiles=${modfiles//$2/$1} | |
rm patchfiles -rf | |
mkdir patchfiles | |
echo $modfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Android < 6.x.x termux legacy repository | |
deb https://mirrors.nju.edu.cn/termux stable main | |
deb https://archive.org/download/termux-repositories-legacy/termux-repositories-legacy-24.12.2019.tar/termux-repositories-legacy%2Fwebroot%2Ftermux-packages stable main | |
deb https://termux.unternet.net/apt/dists/termux-packages stable main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MEDIA SIZE 300 pixels per inch | |
export LETTER="2550x3300" | |
export LONG="2550x3900" | |
export LEGAL="2550x4200" | |
export A4="2490x3510" | |
export 3R="1050x1500" | |
export 4R="1200x1800" | |
export 5R="1500x2100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* rgb2vga.c - converts rgb values to vga 256. */ | |
/* Copyright (c) 2023 Al-buharie Amjari */ | |
/* Released under MIT License */ | |
#include <math.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#define F(x) ((float)x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generate packed pictures | |
// gcc pprint.c -lpng16 -lz -O2 -o pprint | |
// This takes in a 8 bit depth RGBA png of any size, and produces an a4 size | |
// paper of 300dpi Which can be use for automatically generating 1x1in copies of | |
// picture for mass production. | |
/** | |
* The author disclaims copyright to this source code. In place of | |
* a legal notice, here is a blessing: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define SECONDS 6 /* you can change this to suit for your preferences */ | |
#define LENGTH 300 /* you can experiment with different string length */ | |
char wav_struct[] = { | |
'R', 'I', 'F', 'F', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* aeabi.h - declares the ARM run-time helper-function ABI for programs written in C. | |
* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* In jurisdictions that recognize copyright laws, the author or authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc wmain2.c tracer.c utils.c math.c -fopenmp -lm -lmingw32 -lSDL2main -lSDL2 | |
* -mwindows -Dmain=SDL_main -o wmain2 */ | |
#include "common.h" | |
#include <SDL2/SDL.h> | |
#include <assert.h> | |
#include <process.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <math.h> | |
#include <fftw3.h> | |
typedef struct __attribute__((__packed__)) { | |
char ChunkID[4]; | |
uint32_t ChunkSize; |
NewerOlder