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 bash | |
SUDO='' | |
if [ "$(id -u)" != "0" ]; then | |
SUDO='sudo' | |
echo "This script requires superuser access." | |
echo "You will be prompted for your password by sudo." | |
# clear any previous sudo permission | |
sudo -k | |
fi |
- Intel i7-7700K
- ASUS ROG Strix Z270I
- Corsair Vengeance LPX 32GB (2 x 16GB)
- SSD Samsung 950 PRO NVMe 512GB
- Fractal Design Node 202 Black with Integra SFX 450w PSU Slim Profile Mini-ITX Computer Case
- Scythe Big Shuriken 2
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
from __future__ import with_statement | |
from alembic import context | |
from sqlalchemy import engine_from_config, pool | |
from logging.config import fileConfig | |
from models import Base | |
config = context.config | |
fileConfig(config.config_file_name) |
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
# -*- coding: utf-8 -*- | |
# pylint: disable=line-too-long, unused-argument, invalid-name, too-many-arguments, too-many-locals | |
""" | |
Utilities to support integration of Vowpal Wabbit and scikit-learn | |
""" | |
import numpy as np | |
import sklearn | |
from pyvw import vw | |
import re |
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
import networkx as nx | |
def hamilton(G): | |
F = [(G,[list(G.nodes())[0]])] | |
n = G.number_of_nodes() | |
while F: | |
graph,path = F.pop() | |
confs = [] | |
neighbors = (node for node in graph.neighbors(path[-1]) | |
if node != path[-1]) #exclude self loops |