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
{"version": 1, "width": 24, "height": 9, "duration": 5.5, "command": "-", "title": "gym VideoRecorder episode", "env": {}, "stdout": [[0.5, "\u001b[2J\u001b[1;1H+---------+\r\n|R: | : :\u001b[34;1mG\u001b[0m|\r\n|\u001b[43m \u001b[0m: : : : |\r\n| : : : : |\r\n| | : | : |\r\n|Y| : |\u001b[35mB\u001b[0m: |\r\n+---------+\r\n\r\n"], [0.5, "\u001b[2J\u001b[1;1H+---------+\r\n|R: | : :\u001b[34;1mG\u001b[0m|\r\n|\u001b[43m \u001b[0m: : : : |\r\n| : : : : |\r\n| | : | : |\r\n|Y| : |\u001b[35mB\u001b[0m: |\r\n+---------+\r\n (Pickup)\r\n"], [0.5, "\u001b[2J\u001b[1;1H+---------+\r\n|R: | : :\u001b[34;1mG\u001b[0m|\r\n|\u001b[43m \u001b[0m: : : : |\r\n| : : : : |\r\n| | : | : |\r\n|Y| : |\u001b[35mB\u001b[0m: |\r\n+---------+\r\n (Dropoff)\r\n"], [0.5, "\u001b[2J\u001b[1;1H+---------+\r\n|R: | : :\u001b[34;1mG\u001b[0m|\r\n| : : : : |\r\n|\u001b[43m \u001b[0m: : : : |\r\n| | : | : |\r\n|Y| : |\u001b[35mB\u001b[0m: |\r\n+---------+\r\n (South)\r\n"], [0.5, "\u001b[2J\u001b[1;1H+---------+\r\n|R: | : :\u001b[34;1mG |
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
# -*- coding: utf-8 -*- | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
import seaborn as sns | |
def draw_flame(N=10, M=10): | |
X = np.zeros((N, M)) |
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
module seg7dec ( | |
input [3:0] DIN, | |
output reg [6:0] HEX | |
); | |
always @* begin | |
case ( DIN ) | |
4'h0: HEX = 7'b1000000; | |
4'h1: HEX = 7'b1111001; | |
4'h2: HEX = 7'b0100100; |
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
# -*- coding: utf-8 -*- | |
# original soruce: https://terutakke.com/diary/1602-i2c-serial-lcd-modul/ | |
from time import sleep | |
from time import gmtime, strftime | |
import RPi.GPIO as GPIO | |
import datetime | |
import smbus |
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
# -*- coding: utf-8 -*- | |
import pickle | |
import networkx as nx | |
from lxml import etree | |
from copy import deepcopy | |
filename = 'hiroshima.osm' | |
tree = etree.parse(filename) | |
G = nx.DiGraph() |
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
# -*- coding: utf-8 -*- | |
import pickle | |
import networkx as nx | |
import matplotlib.pyplot as plt | |
G = pickle.load(open("GG.pickle", "rb")) | |
print(G.number_of_nodes()) | |
print(G.number_of_edges()) |
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
# -*- coding: utf-8 -*- | |
import matplotlib.pyplot as plt | |
import networkx as nx | |
from networkx.algorithms import bipartite | |
B = nx.Graph() | |
B.add_nodes_from([1, 2, 3, 4], bipartite=0) | |
B.add_nodes_from(['a', 'b', 'c'], bipartite=1) | |
B.add_edges_from([ |
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
# *-* coding: utf-8 -*- | |
import time | |
import numpy as np | |
import networkx as nx | |
from itertools import product | |
from collections import defaultdict | |
from generator.sample_graph import grid_graph_noisy | |
def build_stpath_functions(G): |
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
# *-* coding: utf-8 -*- | |
import time | |
import numpy as np | |
import networkx as nx | |
from itertools import product | |
from collections import defaultdict | |
from generator.sample_graph import grid_graph_noisy | |
def build_stpath_functions(G): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.