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
''' | |
This script is based on the original work of Randal S. Olson (randalolson.com) for the Traveling Salesman Portrait project. | |
http://www.randalolson.com/2018/04/11/traveling-salesman-portrait-in-python/ | |
Please check out the original project repository for information: | |
https://github.com/rhiever/Data-Analysis-and-Machine-Learning-Projects | |
The script was updated by Joshua L. Adelman, adapting the work of Antonio S. Chinchón described in the following blog post: | |
https://fronkonstin.com/2018/04/17/pencil-scribbles/ |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
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
package karelmovil; | |
import java.util.LinkedList; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
public class KLexer { | |
public final char ESTADO_ESPACIO = ' '; | |
public final char ESTADO_PALABRA = 'a'; | |
public final char ESTADO_COMENTARIO = '#'; | |
public final char ESTADO_NUMERO = '0'; |
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
#Lista de numeros primos entre 1 y 100 en una sola linea | |
c = [i for i in xrange(2,101) if (i%2!=0 or i==2) and (i%3!=0 or i==3) and (i%5!=0 or i==5) and (i%7!=0 or i==7)] | |
print c |