Skip to content

Instantly share code, notes, and snippets.

View maluta's full-sized avatar

Tiago Maluta maluta

View GitHub Profile
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51447011-1', 'auto');
ga('send', 'pageview');
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-62678727-1', 'auto');
ga('send', 'pageview');
</script>
# formato do dicionário
'''
{
'nome':<string>,
'idade':<int>,
'peso':<float>,
'altura':<float>,
<div dir="ltr"><div class="gmail_quote"><br><u></u>
<div marginwidth="0" marginheight="0" style="margin:0;padding:0;background-color:#f2f2f2;min-height:100%!important;width:100%!important">
% Copyright (c) Nic.br
% The use of the data below is only permitted as described in
% full by the terms of use (http://registro.br/termo/en.html),
% being prohibited its distribution, comercialization or
% reproduction, in particular, to use it for advertising or
% any similar purpose.
% 2015-02-20 14:59:34 (BRST -02:00)
domain: gatopolis.com.br
owner: Ana Luiza Mascarenhas
import random
perguntas = [
"Forneça ............. ?",
"Organize ............. ?",
"Aonde ............. ?",
"Escolha ............. ?",
"Quais ............. ?",
"Como ............. ?",
# arte conceito com o instagram
# pega uma imagem e 'fatia' em 6 partes
# o arquivo 'cropinsta.html' mostra como vai ficar.
# veja o arquivo cropinsta.html (gerado após executar o programa) para ter uma idéia de como vai ficar. [não se esqueça de diminuir o zoom da página]
from PIL import Image
import sys
filename = "teste.jpg"
from PIL import Image
import random
# PARÂMETROS DA IMAGEM
LARGURA = 300
ALTURA = 300
# VAMOS CRIAR UMA IMAGEM EM "BRANCO"
arte_final = Image.new( 'RGB', (LARGURA, ALTURA))
@maluta
maluta / osi.py
Last active August 29, 2015 14:08
input = raw_input
print "primeiro programa"
valor = input("qual seu nome")
"""
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
From:
http://programarcadegames.com/python_examples/f.php?file=maze_runner.py
Explanation video: http://youtu.be/5-SbFanyUkQ