This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# formato do dicionário | |
''' | |
{ | |
'nome':<string>, | |
'idade':<int>, | |
'peso':<float>, | |
'altura':<float>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
perguntas = [ | |
"Forneça ............. ?", | |
"Organize ............. ?", | |
"Aonde ............. ?", | |
"Escolha ............. ?", | |
"Quais ............. ?", | |
"Como ............. ?", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input = raw_input | |
print "primeiro programa" | |
valor = input("qual seu nome") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |