Skip to content

Instantly share code, notes, and snippets.

View Jingnan-Jia's full-sized avatar
🏠
Working from home

Jingnan Jia Jingnan-Jia

🏠
Working from home
View GitHub Profile
##############################
# Frequently used commands
##############################
squeue
squeue -u [username]
squeue --me
sinfo
scancel [jobid]
@david-macleod
david-macleod / plot_timings.py
Created January 10, 2020 07:41
plot_timings
def plot_timings(loader, n_batches, model_time=0.2, max_time=2.5):
fig, ax = plt.subplots()
ax.set_axisbelow(True)
ax.yaxis.grid(which="major", color='black', linewidth=1)
zero_time = time.time()
worker_ids = {}
worker_count = count()
@SHDShim
SHDShim / latex_supp_manuscript.md
Last active May 26, 2023 20:21
latex, supplementary materials,

Latex template for supplementary information

We need bibunits package.

\usepackage{bibunits}

Locate the following before abstract

@ozancaglayan
ozancaglayan / slurm_aliases.rc
Last active April 23, 2024 12:43
Aliases for SLURM
###############
# SINFO aliases
###############
# Detailed sinfo
alias si="sinfo -o '%8P %10n %.11T %.4c %.8z %.6m %12G %10l %10L %10O %20E' -S '-P'"
# sinfo only on GPU partition
alias sig="si -p gpu"
# sinfo only on CPU partition
alias sic="si -p cpu"