First update installed packages:
sudo apt upgrade && sudo apt update
name: DS | |
channels: | |
- conda-forge | |
dependencies: | |
# System | |
- pip | |
# Data science | |
- numpy | |
- scipy |
# Minimal/preferred R script environment and configuration | |
# Packages | |
library(ggplot2) | |
library(ggthemes) | |
library(tidyverse) | |
# Config | |
theme_set(theme_few()) | |
scale_colour_discrete <- function(...) scale_colour_few(...) |
import setuptools | |
setuptools.setup( | |
name='lczero', | |
version='0.26.0', | |
author='John Reid', | |
author_email='johnbaronreid@netscape.net', | |
description='LC0 chess engine python bindings', | |
long_description=open('README.md').read(), | |
long_description_content_type='text/markdown', |
#!/usr/bin/env python | |
'''Script to train a bilstm-crf model.''' | |
import os | |
import argparse | |
import random | |
import numpy as np | |
import pandas as pd | |
from sklearn.metrics import f1_score |
# bash commands | |
# lists all of your conda env | |
conda env list | |
# Create a conda env w/ python3.5 | |
# -n sets the name for your new env. I call it neovim here | |
conda create -n neovim python=3.5 | |
# add neovim for python3 to the env | |
# specify version you want here, 0.1.13 up to date ver atm |
[pep8] | |
# ignore = D203 | |
max-line-length = 120 | |
indent-size = 2 | |
[flake8] | |
# ignore = D203 | |
max-line-length = 120 | |
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist | |
indent-string = ' ' |
\documentclass[xcolor={usenames, dvipsnames, svgnames, table}]{beamer} | |
% | |
% Customise beamer | |
\usetheme{metropolis} % Simple minimal theme | |
\usecolortheme[snowy]{owl} % Dark on light | |
\setbeamertemplate{footline}{} % Completely remove footline | |
\setbeamertemplate{frametitle continuation}{[\insertcontinuationcount]} % Nicer numbering | |
% |
\documentclass{letter} | |
% | |
% Compiler specific packages | |
% | |
% Check if using XeTeX or not: https://tex.stackexchange.com/a/54597/39498 | |
\usepackage{ifxetex} | |
\ifxetex{} | |
\usepackage{fontspec} | |
\usepackage{csquotes} | |
\usepackage{polyglossia} |
% Copyright John Reid 2018 | |
% | |
% A template for LaTeX articles including some boilerplate code I frequently use | |
% https://gist.github.com/JohnReid/38b744fe9bf7bc25241367e6a894a4bd | |
% | |
\documentclass{article} | |
% | |
% Compiler specific packages |