Skip to content

Instantly share code, notes, and snippets.

View jodros's full-sized avatar

João Quinaglia jodros

View GitHub Profile
@raysan5
raysan5 / raylib_vs_sdl.md
Last active December 25, 2025 23:34
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@gabrielleme00
gabrielleme00 / bf.cpp
Last active August 28, 2025 06:27
Simple Brainfuck interpreter in C++
#include <iostream>
unsigned char tape[30000] = {0};
unsigned char* ptr = tape;
void interpret(char* input)
{
char current_char;
unsigned int i, loop;
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 28, 2025 01:15
Conventional Commits Cheatsheet
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@jatcwang
jatcwang / gist:ae3b7019f219b8cdc6798329108c9aee
Created February 2, 2017 23:44
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@marcoscastro
marcoscastro / dijkstra.cpp
Last active January 21, 2025 01:33
Programação em C++ - Algoritmo de Dijkstra
// Implementação do algoritmo de Dijkstra
// Teste: http://br.spoj.com/problems/ENGARRAF/
#include <iostream>
#include <list>
#include <queue>
#define INFINITO 10000000
using namespace std;
@marcoscastro
marcoscastro / grafo_dfs.cpp
Created February 19, 2015 12:31
C++ - Busca em profundidade - DFS
// Grafos - DFS (busca em profundidade)
#include <iostream>
#include <list>
#include <algorithm> // função find
#include <stack> // pilha para usar na DFS
using namespace std;
class Grafo
@marcoscastro
marcoscastro / arvore_bin.cpp
Created December 3, 2014 03:27
Curso C++ para iniciantes - Aula 53 - Árvore binária
#include <iostream>
using namespace std;
class No
{
private:
No *esq, *dir;
int chave;
public:
@marcoscastro
marcoscastro / sobrecarga1.cpp
Created October 4, 2014 19:52
Aula 41 - Sobrecarga do operador +
// Sobrecarga do operador +
#include <iostream>
using namespace std;
class Complexo
{
public:
int real, imag;
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>