Skip to content

Instantly share code, notes, and snippets.

@LAK132
LAK132 / result_statement_expression_try.c
Last active February 4, 2026 07:35
Result types in C
#ifndef __cplusplus
# define decltype typeof
# include <stdbool.h>
#endif
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#define TOKEN_CONCAT_EX(x, y) x##y
#define TOKEN_CONCAT(x, y) TOKEN_CONCAT_EX(x, y)
@2KAbhishek
2KAbhishek / mirrorlist.sh
Created October 21, 2020 13:25
Generate fastest mirrors for Arch linux
#!/bin/bash
# Install reflector
sudo pacman -S reflector
# Update mirrorlist
reflector | sudo tee /etc/pacman.d/mirrorlist
@fnky
fnky / ANSI.md
Last active March 5, 2026 01:41
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27