Skip to content

Instantly share code, notes, and snippets.

View jodros's full-sized avatar

João A. Quinaglia jodros

  • São Paulo/SP, Brasil.
  • 02:24 (UTC -03:00)
View GitHub Profile
@raysan5
raysan5 / raylib_vs_sdl.md
Last active September 18, 2024 13:50
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 November 5, 2023 19:50
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 September 22, 2024 23:30
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@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 April 17, 2024 17:30
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'>
@Spoygg
Spoygg / gist:3122226
Created July 16, 2012 11:29
Keyboard switches for XKB setxkbmap
altwin:menu = +altwin(menu)
altwin:meta_alt = +altwin(meta_alt)
altwin:ctrl_win = +altwin(ctrl_win)
altwin:meta_win = +altwin(meta_win)
altwin:left_meta_win = +altwin(left_meta_win)
altwin:super_win = +altwin(super_win)
altwin:hyper_win = +altwin(hyper_win)
altwin:alt_super_win = +altwin(alt_super_win)
altwin:swap_lalt_lwin = +altwin(swap_lalt_lwin)
grp:switch = +group(switch)