push(x) no final da fila, pop(x), front(x) retorna o valor do 1o. elemento da fila, size(), empty()
queue<int> q;
q.push(1);
print(q.front());
q.pop();
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/rodrigoorem/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
import sys | |
from PIL import Image | |
class Template: | |
COLOR_MAP = { | |
(255, 255, 255): 0, | |
(228, 228, 228): 1, | |
(136, 136, 136): 2, | |
(34, 34, 34): 3, |
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 | |
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3 | |
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3 | |
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3 | |
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 8 8 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3 | |
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 8 8 8 8 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3 | |
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1 |
javascript:location.href='http://facebook.com/l.php?u='+encodeURIComponent(location.href) |
#include <stdio.h> | |
#include <string.h> | |
const char grupos[10][5] = {"", "", "abc", "def", "ghi", "jkl", | |
"mno", "pqrs", "tuv", "wxyz"}; | |
void gerarPalavra(int number[], int curr_digit, char output[], int n) | |
{ | |
int i; | |
if (curr_digit == n) | |
{ |
// Toca alarme quando a fila atingir os valores abaixo: | |
let limites = [310000, 100000, 50000, 10000, 1000]; | |
// Define intervalo de verificação em segundos | |
let intervalo = 30; | |
function alarm() { | |
var audio = new Audio('https://linux.ime.usp.br/~orem/alarme.mp3'); | |
audio.play(); | |
} |
cl<Tab>
=> console.log('
foro<Tab>
=> for (const item of list) {...}
# remap prefix from 'C-b' to 'C-x' | |
unbind C-b | |
set-option -g prefix C-x | |
bind-key C-x send-prefix | |
# ctrl-a (not the prefix, but after) to go to last window | |
bind-key C-a last-window | |
# hot conf reload | |
bind r source-file ~/.tmux.conf |