Skip to content

Instantly share code, notes, and snippets.

View hugogrochau's full-sized avatar

Hugo Grochau hugogrochau

View GitHub Profile
@hugogrochau
hugogrochau / palindromicprime.php
Created April 13, 2012 13:48
Palindromic Prime in Pi
<?php
$pi = str_split("3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198
@hugogrochau
hugogrochau / stylesheet.css
Created April 21, 2012 04:03
futurology CSS
div.titlebox span.word {
display: block
}
div.titlebox span.number:after {
content: " Learned Doctors."
}
/*Makes header image*/
#header-bottom-left {
background: url(http://c.thumbs.redditmedia.com/lCi5aNeBS749d0Tn.jpg);
font-size: 20px;
@hugogrochau
hugogrochau / stylesheet.css
Created April 21, 2012 04:21
futurology CSS - based off r/minimalism
body {
font-family: Helvetica, Arial, sans-serif;
line-height: 1.4;
color: black;
}
.side {
padding-left: 10px;
padding-right: 4px;
margin-left: 0;
width: 300px
@hugogrochau
hugogrochau / sapatos.c
Created May 27, 2013 03:54
Questão 2 da P2 antiga
#include <stdio.h>
#include <stdlib.h>
#define ARQUIVO "QUALIDADE.TXT"
#define TAM_MIN 25
#define TAM_MAX 44
#define TAM (TAM_MAX - TAM_MIN + 1)
void preenche_vetores(float[], float[], int);
@hugogrochau
hugogrochau / QUALIDADE.TXT
Created May 27, 2013 04:38
Numeros de qualidade para testar
38.923894829744164 39.942208267651665
22.5975439302874 38.330010004836105
33.31267805577762 39.9090137787373
26.3828578343269 28.70896911625905
32.53377481417875 32.7209607331024
39.7890630028386 39.800964019436215
38.27783618821795 38.71172787070596
22.470591965630934 33.3273192922732
26.17267995311451 35.221476753261754
26.939366710751116 26.968992932633
@hugogrochau
hugogrochau / qualidade-gerador.py
Created May 27, 2013 04:50
Gerador de QUALIDADE.TXT
#!/usr/bin/env python
import random
min = 25
max = 44
tamanhos = open("QUALIDADE.TXT", mode="w")
for i in range(min, max + 1):
@hugogrochau
hugogrochau / brinquedos.c
Created May 28, 2013 02:09
Solução da P2 de brinquedos
#include <stdio.h>
#include <stdlib.h>
#define ARQ_F "FORNECEDORES.TXT"
#define ARQ_B "BRINQUEDOS.TXT"
#define FORNECEDORES 40
#define BRINQUEDOS 300
#define CONSULTAS 10
void preenche_fornecedores(int[]);
@hugogrochau
hugogrochau / scraper.py
Created June 17, 2013 02:17
JSM info scraper
#!/usr/bin/env python2
import argparse
from BeautifulSoup import BeautifulSoup
import urllib2
import unicodedata
import json
def get_page(city):

Keybase proof

I hereby claim:

  • I am hugogrochau on github.
  • I am hugogrochau (https://keybase.io/hugogrochau) on keybase.
  • I have a public key whose fingerprint is 121E 0526 300E 36FA 2604 035F 3B46 D589 50CF 8443

To claim this, I am signing this object:

import React from 'react'
import { Text as RNText, StyleSheet } from 'react-native'
import colors from '~/constants/colors'
const styles = StyleSheet.create({
base: {
fontFamily: 'open-sans-regular',
backgroundColor: 'transparent',
color: colors.black,
fontSize: 16