Skip to content

Instantly share code, notes, and snippets.

View liquuid's full-sized avatar

Fernando Henrique liquuid

View GitHub Profile
@liquuid
liquuid / horror
Created August 31, 2011 17:03
Um codigo php feito por um sobrinho
<?php
//security
$cep = isset($_POST['cep'])?addslashes(trim($_POST['cep'])):false;
echo "<p>CEP digitado: ".$cep."</p>";
if($cep){
$cep1 = $cep[0].$cep[1].$cep[2].$cep[3].$cep[4];
$cep2 = $cep[5].$cep[6].$cep[7];
$cepFinal = $cep1."-".$cep2;
#Incluindo a classe de conexao
@liquuid
liquuid / media.py
Created September 30, 2011 10:39
Media em python
print("Esse programa calcula a media")
nota1 = raw_input("Digite a primeira nota: ")
nota2 = raw_input("Digite a segunda nota: ")
media = (float(nota1) + float(nota2))/2
if media > 6:
print("PARABENS, VOCE ESTA APROVADO")
else:
print("VOCE ESTA REPROVADO")
print("ESSA SUA MEDIA: %s" % media)
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:31 — forked from OiNutter/LICENSE.txt
Credit Card Validation similar to the Luhn Algorithm
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Will McKenzie<www.oinutter.co.uk>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from jed/LICENSE.txt
write contextual templates
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from tsaniel/LICENSE.txt
UTF8 encoder
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from sebastien-p/LICENSE.txt
LZW compression
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
Special thanks to @subzey (you rock) and @kbjr !
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from aemkei/LICENSE.txt
Latitude Longitude Distance - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from p01/LICENSE.txt
Music SoftSynth
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE