Skip to content

Instantly share code, notes, and snippets.

@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active August 2, 2025 22:57
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

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

Roadmap de estudos de SQL

Aviso: Muitas vezes detalhes de várias operações podem variar de banco para banco. Em questões onde fiquei em dúvida, este documento segue o funcionamento do PostgreSQL, pois é o banco que conheço melhor.

Pré-requisito: Álgebra Relacional básica

Antes de começar a escrever SQL, você precisa entender o modelo de como um banco de dados relacional funciona. Não precisa se aprofundar muito, mas você precisa entender como que dados e relacionamentos entre eles são representados. (Nota importante: Relacionamento e relação não são a

@raysan5
raysan5 / open_source_and_videogames.md
Last active June 3, 2025 04:25
Open Source and Videogames - Resources

open_source_and_videogames

Open Source and Videogames - Resources

This git include a list of programs, tools, engines and libraries free and open source intended to make videogames.

NOTE: This gist is a support material for the talk "Open Source and Videogames" given by me, Ramon Santamaria, on October 26th 2021 in Canòdrom, Barcelona. All the materials listed here were explained in detail in a +2 hours talk.

Contents

@takanuva
takanuva / agt.h
Last active July 25, 2022 19:57
Simple generic print() and scan() macros
/*******************************************************************************
* Copyright 2022 Paulo Torrens *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to *
* deal in the Software without restriction, including without limitation the *
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or *
* sell copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *

Instalação do arch linux com full disk encription LVM on LUKS

Garantir se fez o boot utilizando EFI

ls /sys/firmware/efi # Deve haver arquivos nesse folder

Checar conexão com a internet.

ping 1.1.1.1
@lithdew
lithdew / main.zig
Created September 14, 2020 09:30
zig: inheritance
pub const B = struct {
const Self = @This();
data: []const u8,
pub fn getParent(self: *Self) *A {
return @fieldParentPtr(A, "child", self);
}
};
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active July 30, 2025 14:42
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https:

@gingerBill
gingerBill / freetype.odin
Created October 15, 2019 19:35
FreeType Odin
package freetype
import "core:c"
when ODIN_OS == "windows" {
foreign import freetype "freetype291.lib";
}
when ODIN_OS == "darwin" do foreign import freetype {
"macos/libfreetype.a",
}
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]