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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import threadable | |
@threadable.autostart | |
def any_function(): | |
print("Ok, I am a function and I am working in a thread, :D") | |
print("In addiction, you do not need to call me because I am called automatically") | |
print(":D") |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import threadable | |
@threadable.threader | |
def any_function(): | |
print("I am a function and I am working in a thread :D") | |
print("You can call to me when you want to do it :DDDD") |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import threadable | |
@threadable.threadhandler(delay=3) | |
def any_function(): | |
print("Ok, I am goint to be called... Oh wait, if you are reading...") | |
print("this is because I was called already \\o/") | |
print("hahahaha :P") |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import decorators | |
@decorators.justrun | |
def any_function(): | |
print('Running 1') | |
print('Running 2') | |
raise Exception('Any exception') |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
# Pay de frambuesa con galleta | |
# | |
# (ñam ñam) | |
""" | |
import random |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Programa que a través de un menú permite generar | |
el n-simo número poligonal (dado por ti) para | |
los patrones triangular, cuadrado, pentagonal, | |
hexagonal. El programa te pregunta si parar | |
o continuar. |
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
#include <math.h> | |
#include <iostream> | |
/** | |
Generador *recursivo* de números esquizofrénico para un N | |
dado por el usuario, pues. Además, se calcula la raíz | |
cuadrada tan pronto como vamos generandolos. | |
[Más información sobre los números estos](http://numerosacertijosydemas.blogspot.com.co/2010/07/numeros-esquizofrenicos.html) | |
*/ |
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
/** | |
* Software descrifador. | |
* | |
* Fuente: | |
* https://es.wikipedia.org/wiki/Cifrado_C%C3%A9sar | |
* | |
* Recurso: | |
* - https://repl.it/languages/cpp | |
* - http://www.cplusplus.com/reference/cstring/strcmp/ (no se usó al fin) | |
* - http://www.eis.uva.es/~fergay/III/enlaces/gdb.html |
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
/** | |
* Recurso usado: | |
* - http://blog.martincruz.me/2012/09/obtener-numeros-aleatorios-en-c-rand.html | |
* - http://robologs.net/2016/03/31/como-colorear-el-output-de-la-terminal-en-linux/ | |
* - http://stackoverflow.com/questions/2616906/how-do-i-output-coloured-text-to-a-linux-terminal | |
*/ | |
#include <iostream> | |
#include <time.h> | |
#include <string.h> |
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
/** | |
* Un reto. | |
* | |
* Más información: | |
* http://dis.um.es/~domingo/apuntes/AlgProPar/0809/reinas.pdf | |
* | |
* Puede compilarlo en: | |
* https://repl.it/languages/cpp | |
*/ | |
#include <iostream> |
OlderNewer