Skip to content

Instantly share code, notes, and snippets.

View AlphaTechnolog's full-sized avatar

Franklin Gabriel Guerra AlphaTechnolog

View GitHub Profile
@AlphaTechnolog
AlphaTechnolog / color_output.c
Created October 14, 2024 19:01 — forked from radxene/color_output.c
Colored output in C
/**
* For compiling program run:
* gcc -std=c99 color_output.c -o color_output.run
*/
#include <stdio.h>
#define ANSI_RESET_ALL "\x1b[0m"
#define ANSI_COLOR_BLACK "\x1b[30m"
#define ANSI_COLOR_RED "\x1b[31m"
@AlphaTechnolog
AlphaTechnolog / monokai-pro-alacritty.yaml
Created September 2, 2021 19:17
alacritty monokai pro theme
colors:
# Default colors
primary:
background: '0x2D2A2E'
foreground: '0xfff1f3'
# Normal colors
normal:
black: '0x2c2525'
red: '0xfd6883'
@AlphaTechnolog
AlphaTechnolog / diamond.py
Created April 28, 2021 16:00
Python curses diamond screensaver
import curses
import asyncio
from random import randint
from typing import Callable
async def realmain(stdscr: Callable, x_movement: int, y_movement: int):
curses.noecho()
curses.cbreak()