Skip to content

Instantly share code, notes, and snippets.

View toyo97's full-sized avatar

Vittorio Zampinetti toyo97

  • Politecnico di Torino
  • Turin, Italy
View GitHub Profile
@toyo97
toyo97 / cluster_notes.md
Last active August 1, 2023 19:42
Useful commands for HPC usage

Useful cluster info

SBATCH script

This runs 12 tasks on 3 nodes using 8 CPUs per task and notifies via mail about beginning and ending status of job.

#!/bin/bash
#
@toyo97
toyo97 / rev-gma.py
Last active January 20, 2022 08:58
Giacenza media annua conto revolut. Richiede pandas
# python3 rev-gma.py <nome-file> <anno>
# gist github: https://gist.github.com/toyo97/3f876f3e079b96752cd1ed0f7f03d8b6
import sys
import pandas as pd
from datetime import datetime, date
file_name = sys.argv[1]
year = int(sys.argv[2])