Skip to content

Instantly share code, notes, and snippets.

View henrycunh's full-sized avatar
😮‍💨

henrique cunha henrycunh

😮‍💨
View GitHub Profile
@henrycunh
henrycunh / docker.fish
Created December 15, 2019 13:33
Docker Fish Bonanza
function dps
docker ps $argv
end
function dls
docker images $argv
end
function dstop
docker stop (docker ps -q)
@henrycunh
henrycunh / namecount.json
Last active June 13, 2019 02:23
UFSCAR Name Count
[["lucas",303],["gabriel",250],["pedro",240],["silva",229],["oliveira",219],["guilherme",217],["de",215],["santos",201],["joao",198],["julia",163],["bruno",162],["henrique",161],["matheus",159],["ana",153],["vinicius",152],["rafael",147],["leticia",145],["souza",144],["gustavo",144],["felipe",143],["victor",142],["leonardo",135],["gabriela",133],["rodrigues",131],["mariana",113],["pereira",111],["vitor",104],["bruna",103],["ferreira",102],["lima",99],["fernanda",99],["andre",99],["maria",97],["amanda",95],["beatriz",94],["eduardo",94],["martins",91],["paulo",91],["caio",90],["carolina",85],["camila",82],["ribeiro",81],["fernando",80],["alves",79],["luiz",74],["thiago",71],["almeida",69],["carvalho",66],["daniel",66],["rodrigo",65],["lopes",65],["laura",64],["carlos",64],["mateus",63],["natalia",63],["larissa",62],["augusto",60],["fernandes",60],["costa",59],["gomes",59],["goncalves",59],["da",58],["isabela",57],["juliana",56],["luis",55],["caroline",55],["marcos",54],["bianca",54],["jessica",54],["garcia",52]
@henrycunh
henrycunh / launch.json
Created April 25, 2019 02:02
C++ Debug Configurations for Lame Windows
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch C++",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
@henrycunh
henrycunh / readme.md
Last active March 1, 2019 23:05
Converting from Pug to HTML in one line

Requirements

  • pug
  • xsel
  • clip
  • node

You can install on debian based distros by running sudo apt-get install xsel xclip; sudo npm i pug -g

Using

Select and copy the Pug code, run the script below

@henrycunh
henrycunh / readme.md
Created March 1, 2019 22:54
Converting from SASS to SCSS in a line

Requirements

  • sass-converter
  • xsel
  • clip

You can install on debian based distros by running sudo apt-get install ruby-sass xsel xclip

Using

Select and copy the SASS, run the script below

@henrycunh
henrycunh / index.html
Created February 26, 2019 18:40
share
(http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document).
-->
<html>
<head>
<title>Web Share Test</title>
<style>
.error {
color: #d22;
}
</style>
@henrycunh
henrycunh / complex.cpp
Created October 6, 2018 16:16
complex numbers cpp implementation
#include <iostream>
#include <string>
class Complex {
private:
double a, b;
public:
Complex(){
#define HTML "text/html"
/* Structure Types */
typedef struct {
char nome[1000];
char valor[1000];
} Param;
void input(char * name, char * value){
printf("<input name=\"%s\" value=\"%s\" />", name, value);
@henrycunh
henrycunh / p3.c
Created May 21, 2018 04:10
Resolução do Mockup da P3 de Cap
#include <stdio.h>
#include <string.h>
// Constantes pré-compiladas
#define NOME_MAX 60
#define NOTAS_MAX 5
#define AMIGOS_MAX 15
// Definindo a estrutura de Aluno
@henrycunh
henrycunh / app.js
Last active May 20, 2018 21:26
Exercicio Bilbo
let elEntrada = document.getElementById('entrada')
let elSaida = document.getElementById('container')
let elForm = document.getElementById('formulario')
const gerarNumeros = (evento) => {
evento.preventDefault()
let numero = parseInt(elEntrada.value)
let saida = ""
for(let i = 0; i < numero; i++)
saida += Math.round(Math.random() * 100) + "<br>"
elSaida.innerHTML = saida