Skip to content

Instantly share code, notes, and snippets.

View Hachem-H's full-sized avatar

Hachem H. Hachem-H

View GitHub Profile
@Hachem-H
Hachem-H / hext.h
Last active February 10, 2024 17:26
Hachem's C Extensions
/*
* hext.h - Hachem's C Extensions.
*
* A set of utility functions, definitions and macros
* which make programming in C, a little less annoying.
*
*
* Author: Hachem H.
* Version: 0.1.1
*
@Hachem-H
Hachem-H / BrainCell.asm
Created August 21, 2023 09:26
A Brainf**ck compiler written x64 NASM assembly.
; The BrainCell Brainf**k Compiler
; --------------------------------
;
; BrainCell is a basic brainf**k compiler written in an evening,
; It contains a basic transpiler which translates brainf**k code,
; into the equivalent C code. Then uses `gcc` to compile the
; generated output. Though I do recognize the fact that this
; is not an optimized approach in any way, shape or form,
; but this is a rather fun and simple project, not designed to
; be serious.
@Hachem-H
Hachem-H / ASCII-Cube.c
Last active August 21, 2023 09:27
A 3D ASCII-Terminal cube projection.
// gcc -o ASCII-Cube -O2 -DNDEBUG -Wall -Wextra -Werror ASCII-Cube.c -lm
// ./ASCII-Cube
// NOTE: - Resize the terminal to at least 160 columns & 44 rows.
// - This does depend on a terminal which supports ASCII escape codes.
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>