Skip to content

Instantly share code, notes, and snippets.

View davebshow's full-sized avatar

David Michael Brown davebshow

  • Vancouver Island
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
from itertools import chain
import networkx as nx
class ProjX(object):
"""Prototype implementation of a query/schema
manipulation language for NetworkX."""
def __init__(self, graph, type_attr='type'):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davebshow
davebshow / similarity_qs.ipynb
Last active June 1, 2020 15:12
Using Gensim to make some similarity queries.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davebshow
davebshow / reports.json
Created August 20, 2014 15:08
Dummy JSON for reports models
// ReportTemplate JSON
[
[
{
"rowspan":"1",
"colspan":"1",
"id":"cell1",
"chartType":"line",
"displayQuery":"Query1",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
from django.db import models
from jsonfield import JSONField
from base.fields import AutoSlugField
from graphs.models import Graph
from operators.models import Query
class ReportTemplate(models.Model):

Smoothies: Ingredient and Recipe Recommendation

//Graph written from NetworkX