Skip to content

Instantly share code, notes, and snippets.

View wdsrocha's full-sized avatar

Wesley Rocha wdsrocha

View GitHub Profile
@wdsrocha
wdsrocha / Jogo_da_Velha.cpp
Created June 12, 2023 18:15
Joguinho que fiz em 2015 quando estava aprendendo a programar
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
using namespace std;
int game_mode, p1, p2, cpu = 0;
char opcao, nome1[50], nome2[50], ttt[3][3] = {{'_','_','_'},{'_','_','_'},{' ',' ',' '}}; // ttt = tic tac toe
bool game_over, restart = true, invalid = false;
@wdsrocha
wdsrocha / pinboard_experience.md
Created November 1, 2021 17:51
My Pinboard fake-free-trial experience

My Pinboard fake-free-trial experience

Every timestamp is in GMT -4.

At 2021-10-15 22:04:50 I've successfully purchased a one-year subscription plan on https://pinboard.in, which costed $22 USD (R$ 132,68 BRL in my currency).

Pinboard claims that there is a seven-day trial period after signup which is FULLY REFUNDABLE. This can be proven in the web archive snapshots from Oct 8th:

@wdsrocha
wdsrocha / index.html
Created July 5, 2020 02:31
Expand wdsrocha into wesley da silva rocha with fancy effect.
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>
<div class="expander">
<span>w</span><span>esley&nbsp;</span>
<span>d</span><span>a&nbsp;</span>
<span>s</span><span>ilva&nbsp;</span>
<span>rocha</span>
@wdsrocha
wdsrocha / README.md
Last active May 16, 2020 19:46 — forked from RodrigoCMoraes/format_points_list_to_visualization.py
useful snippets to data related to maps visualization
@wdsrocha
wdsrocha / clean-react-app.sh
Created April 27, 2020 03:12
Use after running the create-react-app script to have a cleaner "hello, world" app.
#!/bin/bash
# exit when any command fails
set -e
rm public/{*.png,manifest.json,robots.txt}
cat > public/index.html << EOF
<!DOCTYPE html>
<html lang="en">
export ZSH="/home/$(whoami)/.oh-my-zsh"
ZSH_THEME="spaceship"
plugins=(
git
vi-mode
thefuck
)
@wdsrocha
wdsrocha / google_shell_style_guide.md
Created July 11, 2019 13:28
Google Shell Style Guide - In Markdown!

Google Shell Style Guide

Original revision: 1.26

Paul Armstrong
Too many more to mention

Parsed to Markdown by Wesley Rocha. See source.

@wdsrocha
wdsrocha / Q1.cpp
Created June 4, 2019 19:38
Projeto Prático da Disciplina de Projeto e Análise de Algoritmos 2019.1
#include <iostream>
#include <vector>
using namespace std;
struct Soldier { int id, strength; };
int main() {
int n;
cin >> n;
@wdsrocha
wdsrocha / shutter_recount.md
Created April 9, 2019 14:45
Re-enumerate all elements in a folder (used for Shutter specifications)
@wdsrocha
wdsrocha / .vimrc
Last active July 8, 2019 14:17
My .vimrc for competitive programming
syntax on
set et ts=4 sw=4 sts=4 ai nu cindent
noremap <c-j> 15gj
noremap <c-k> 15gk
""forked" from https://github.com/naumazeredo/competitive-programming/blob/master/vimrc