Skip to content

Instantly share code, notes, and snippets.

View henrycunh's full-sized avatar
😮‍💨

henrycunh henrycunh

😮‍💨
View GitHub Profile
@henrycunh
henrycunh / trocadilhos.json
Last active May 5, 2023 14:09
Dataset com trocadilhos/charadas, extraídos do site https://osvigaristas.com.br
[
{
"pergunta" : "Quais heróis se preocupam mais com as poses para fotos do que com salvar o seu planeta?",
"resposta" : "Os TumblrCats"
},{
"pergunta" : "Qual é a profissão do Homem Aranha?",
"resposta" : "Desenvolvedor Web"
},{
"pergunta" : "Qual é o estado dos EUA que te eletrifica?",
"resposta" : "Ohio."
@henrycunh
henrycunh / exercicio.java
Last active January 8, 2018 02:58
Exercicio de Java
import java.util.ArrayList;
import java.util.Scanner;
/** Os conjuntos possuem termos, que por sua vez são
* apenas um Array de Strings, contendo a quantidade
* de items determinada
* */
public class ExclusaoMult {
@henrycunh
henrycunh / cw_crafting.json
Last active June 17, 2018 19:43
Chat Wars Crafting Recipes
{
"Wrapping" : {
"materials" : [
{
"name" : "Cloth",
"quantity" : 3
},
{
"name" : "String",
"craftable" : true,
@henrycunh
henrycunh / stops.json
Last active April 8, 2018 13:33
Pontos de Ônibus das 10 maiores linhas de São Paulo em Geolocalização
[{"id":428044,"name":"Centro, Terminal de São Bernardo do Campo","lat":-23.6981044463,"lon":-46.5528263691,"linha":"285"},{"id":468001,"name":"Rua Ézio Rossi, 1-143","lat":-23.7206679683,"lon":-46.5512471273,"linha":["288","285"]},{"id":469011,"name":"Terminal Metropolitano Santo André Oeste.","lat":-23.6525746044,"lon":-46.5288582253,"linha":"287"},{"id":482002,"name":"Avenida Pereira Barreto, 589-651","lat":-23.6707074828,"lon":-46.5352303615,"linha":["285","287"]},{"id":495084,"name":"Avenida Brigadeiro Faria Lima, 2151-2227","lat":-23.7174748443,"lon":-46.5510991823,"linha":["285","288"]},{"id":500003,"name":"Avenida Brigadeiro Faria Lima, 2162-2238","lat":-23.7180173459,"lon":-46.5514173754,"linha":"285"},{"id":502100,"name":"Avenida Brigadeiro Faria Lima, 623","lat":-23.7038427245,"lon":-46.5520391401,"linha":["288","285"]},{"id":537233,"name":"Parque das Nacoes","lat":-23.6363342208,"lon":-46.5160995227,"linha":"285"},{"id":537234,"name":"Avenida Pereira Barreto, 2-76","lat":-23.6680165977,"lon":-46.53
@henrycunh
henrycunh / trabalhoJander.c
Last active May 7, 2018 20:08
Trabalho #1 do Jander
/* qualquer dúvida @henrycunh */
#include <stdio.h>
#include <string.h>
#define LARGURA_MAXIMA 1000
#define ALTURA_MAXIMA 1000
typedef struct pix {
int r, g, b;
@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
@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
#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 / complex.cpp
Created October 6, 2018 16:16
complex numbers cpp implementation
#include <iostream>
#include <string>
class Complex {
private:
double a, b;
public:
Complex(){
@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>