Skip to content

Instantly share code, notes, and snippets.

const int ledPins[] = {8, 9, 10, 11};
const int buttonPins[] = {2, 3, 4, 5};
int sequence[100];
int input[100];
int level = 0;
int step = 0;
bool playing = true;
// Define pin numbers for LEDs
const int led1 = 8;
@jfbeaumont
jfbeaumont / gedslow1.py
Created January 25, 2018 16:10
Test graph edit distance speed added with https://github.com/networkx/networkx/issues/2361
#!/usr/bin/env python
import networkx as nx
import time
import sys
from networkx.drawing.nx_pydot import read_dot
from networkx.drawing.nx_pydot import write_dot
def nmatch(n1, n2):
return n1 == n2
@jfbeaumont
jfbeaumont / gedbug2.py
Last active December 18, 2017 22:23
Some test cases for networkx new graphical edit distance feature
import unittest
import networkx as nx
def nmatch(n1, n2):
return n1 == n2
def ematch(e1, e2):
return e1 == e2
def ged(g1,g2):