Skip to content

Instantly share code, notes, and snippets.

View jodros's full-sized avatar

João Quinaglia jodros

View GitHub Profile
@ivan-ivanic-cm
ivan-ivanic-cm / 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)
@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'>
@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;
@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 / 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 / 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;
@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
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.
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 28, 2025 01:15
Conventional Commits Cheatsheet
@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;