Skip to content

Instantly share code, notes, and snippets.

View ivyleavedtoadflax's full-sized avatar
🥘

Matt Upson ivyleavedtoadflax

🥘
View GitHub Profile
{
"accountId": null,
"compute": {
"accelerator": "cpu",
"instanceSize": "small",
"instanceType": "c6i",
"scaling": {
"maxReplica": 1,
"minReplica": 1
}
@ivyleavedtoadflax
ivyleavedtoadflax / dvc.yaml
Created October 7, 2022 18:12
DVC issue example
stages:
foo:
cmd: echo '{"f1-score":0.99}' > f1.json
metrics:
- f1.json
stages:
train:
cmd: >-
rasa data validate &&
rasa train --fixed-model-name ./models/model --out ./
params:
- config.yml:
- pipeline
- policies
deps:
@ivyleavedtoadflax
ivyleavedtoadflax / R_connect_to_MS_SQL_Server.md
Last active December 22, 2021 00:46
R Connect to MS SQL Server

Connecting to MS SQL Server using RODBC

You may need to install the following libraries (if you don't already have them)

install.packages("RODBC")
install.packages("dplyr")

Load these packages

@ivyleavedtoadflax
ivyleavedtoadflax / .tmux.conf
Last active October 5, 2020 18:55
Remote .tmux.conf
# Set prefix to capslock
set -g prefix C-b
# Set defaults
set -s escape-time 1
set -g base-index 1
setw -g pane-base-index 1
@ivyleavedtoadflax
ivyleavedtoadflax / init.vim
Last active September 28, 2020 14:55
Neovim configuration for remote machines
call plug#begin('~/.vim/plugged')
Plug 'jreybert/vimagit'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-sensible'
Plug 'dracula/vim'
Plug 'Vimjas/vim-python-pep8-indent'
Plug 'chrisbra/csv.vim'
Plug 'scrooloose/nerdtree'
@ivyleavedtoadflax
ivyleavedtoadflax / init.vim
Last active April 4, 2020 23:25
NeoVim config
call plug#begin('~/.vim/plugged')
Plug 'Valloric/YouCompleteMe'
Plug 'jreybert/vimagit'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-unimpaired'
Plug 'w0rp/ale'
Plug 'tpope/vim-sensible'
Plug 'dracula/vim'
@ivyleavedtoadflax
ivyleavedtoadflax / find_overlapping_spans.py
Last active February 24, 2020 19:32
Find overlapping spans in prodigy documents
# coding: utf-8
import itertools
from itertools import groupby
from operator import itemgetter
from pprint import PrettyPrinter
import plac
from deep_reference_parser.io import read_jsonl, write_jsonl
.DEFAULT_GOAL := files
MATCH_PATH := s3://datalabs-dev/reach-airflow/output/match_annotated_titles
EVAL_PATH := s3://datalabs-dev/reach-airflow/output/policy-test/evaluation/results
eval = evaluation-results.json
PRODIGY_PATH = s3://datalabs-data/reach_evaluation/data/sync
prodigy = 2019.10.8_valid_TITLE.jsonl \
@ivyleavedtoadflax
ivyleavedtoadflax / .tmux.conf
Last active December 4, 2019 12:05
tmux configuration
# Set prefix to capslock
set -g prefix C-b
# Set defaults
set -s escape-time 1
set -g base-index 1
setw -g pane-base-index 1