Skip to content

Instantly share code, notes, and snippets.

View theideasmith's full-sized avatar

Akiva Lipshitz theideasmith

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
sbatch start_jupyter_server.sh
sleep 1
echo "Running server on host":
squeue -u acl2205 | grep jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import random
import numpy as np
import numpy.ma as ma
import matplotlib.pyplot as plt
class Dice:
def __init__(self, dicemax, ndice):
self.dicemax = dicemax
self.ndice = ndice
self.initial_ndice = ndice
import sys
import os
projdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
srcdir = os.path.join(projdir, "src")
sys.path.append(srcdir)
from tinydb import where
from const import const as const
from modeldb import TrainDB, ModelDB
from const import const as const
import argparse
# use UTF8
set -g utf8
set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
set -g default-shell /usr/local/bin/fish
# set scrollback history to 10000 (10k)
set -g history-limit 10000
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
" Autreload vimrc
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END
if &term =~ '256color'
" disable Background Color Erase (BCE)
set t_ut=