Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/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.
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 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 |
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 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 |
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
| # 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.
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
| " 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= |