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/env python | |
""" | |
Computes the number of edges on the Graph | |
""" | |
from __future__ import division | |
import networkx as nx | |
from collections import defaultdict |
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/env python | |
# jsonexplorer | |
# An interactive interface to explore JSON documents | |
# | |
# Author: Benjamin Bengfort <[email protected]> | |
# Created: Wed Jun 17 12:15:23 2015 -0400 | |
# | |
# Copyright (C) 2015 Bengfort.com | |
# Licensed under the OSI Approved MIT License | |
# |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"""http://stackoverflow.com/questions/6282432/load-sparse-array-from-npy-file | |
""" | |
import random | |
import scipy.sparse as sparse | |
import scipy.io | |
import numpy as np | |
def save_sparse_matrix(filename, x): | |
x_coo = x.tocoo() | |
row = x_coo.row |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# sudoku.py | |
from __future__ import print_function | |
import random, itertools, string, operator, copy | |
import constraint, networkx, sympy, glpk | |
#################################################################### | |
# Basic parameters |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.