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
[{ | |
"quote": "Life isn’t about getting and having, it’s about giving and being.", | |
"author": "Kevin Kruse" | |
}, { | |
"quote": "Strive not to be a success, but rather to be of value.", | |
"author": "Albert Einstein" | |
}, { | |
"quote": "Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", | |
"author": "Robert Frost" | |
}, { |
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
# ejemplo coloreado de grafos con networkx | |
# gabriel sanchez | |
import networkx as nx | |
import matplotlib.pyplot as plt | |
import itertools | |
G = nx.Graph() | |
colores_dict = {0:'pink', 1: 'blue', 2: 'green', 3:'red', 4:'orange', 5:'yellow'} |
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
#send more money | |
#gabriel sanchez | |
#github.com/gabrielsanchez | |
from constraint import * | |
p = Problem() | |
d = range(0,10) |