Skip to content

Instantly share code, notes, and snippets.

View gabrielsanchez's full-sized avatar

Gabriel Sanchez gabrielsanchez

  • San Antonio
  • 20:32 (UTC -05:00)
View GitHub Profile
@gabrielsanchez
gabrielsanchez / quotes.json
Last active August 3, 2022 16:41 — forked from nasrulhazim/quotes.json
Quotes List in JSON Format
[{
"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"
}, {
@gabrielsanchez
gabrielsanchez / coloradito.py
Created May 14, 2019 03:19
coloreado de grafos
# 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'}
@gabrielsanchez
gabrielsanchez / sendmoremoney.py
Created April 29, 2019 22:50
send more money CSP
#send more money
#gabriel sanchez
#github.com/gabrielsanchez
from constraint import *
p = Problem()
d = range(0,10)