This file contains hidden or 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
| .class{ | |
| opacity: 0.8; | |
| filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ | |
| filter: gray; /* IE6-9 */ | |
| -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ | |
| /*CSS Transition*/ | |
| -webkit-transition: all 0,2s ; | |
| -moz-transition: all 0,2s ; | |
| -ms-transition: all 0,2s ; | |
| -o-transition: all 0,2s ; |
This file contains hidden or 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
| h = input("Cuantos hombres hay?: ") | |
| m = input("Cuantas mujeres hay?: ") | |
| p = 100 * h / (h + m) | |
| print "El porcentaje de hombres es:",p | |
| print "El porcentaje de mujeres es:", (100 - p) |
This file contains hidden or 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
| minutos = float(raw_input("Minutos hablados: ")) | |
| horario = raw_input("Horario: ") | |
| if horario=="NOCHE": | |
| subtotal = int(minutos*7) | |
| else: | |
| subtotal = int(minutos*10) | |
| if subtotal > 1500: | |
| descuento = int(subtotal/10) |
This file contains hidden or 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
| #!/usr/bin/python | |
| #Developed by A. Felipe Cabargas <felipe@cabargas.com> | |
| #All rights reserved 2013 - http://github.com/felipecabargas | |
| def invertir_digitos(n): | |
| return int(str(n)[::-1]) | |
| n = int(raw_input("Ingrese n: ")) | |
| p = invertir_digitos(n) |
This file contains hidden or 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 turtle as t | |
| from math import sqrt | |
| t.forward(10) | |
| t.right(90) | |
| t.forward(10) | |
| t.right(90) | |
| t.forward(10) | |
| t.right(90) | |
| t.forward(10) |
This file contains hidden or 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
| pos = 0 | |
| neg = 0 | |
| print "Ingrese varios valores, termine con cero:" | |
| c = '*' | |
| while True: | |
| num = int(raw_input()) | |
| if num == 0: |
This file contains hidden or 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
| #----------------------------------------------------------------------------- | |
| # Django+VirtualEnvWrapper | |
| #----------------------------------------------------------------------------- | |
| export PATH=/usr/local/bin:/usr/local/share/python:$PATH | |
| export WORKON_HOME=$HOME/.virtualenvs | |
| source /usr/local/share/python/virtualenvwrapper.sh | |
| export PIP_VIRTUALENV_BASE=$WORKON_HOME |
This file contains hidden or 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 reemplazar import borrarpuntuacion | |
| entrada = raw_input(">>>") | |
| print borrarpuntuacion(entrada) |
This file contains hidden or 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
| def is_number(n): | |
| try: | |
| float(n) | |
| return True | |
| except ValueError: | |
| return False | |
| def is_symbol(n): | |
| if n.isalnum() == False: | |
| return True |
OlderNewer