Skip to content

Instantly share code, notes, and snippets.

@davidliyutong
davidliyutong / ClassTableToCS.py
Last active March 7, 2022 07:22
A script to convert class table to ICS format, designed for SJTU SPEIT curriculum.
# %%
from openpyxl import load_workbook
import pandas as pd
import numpy as np
import re
from icalendar import Calendar, Event, vText
from pytz import timezone
from datetime import datetime, timedelta
from typing import Tuple
@deefdragon
deefdragon / migrate.configmap.yaml
Last active October 11, 2024 12:12
Migrating Kubernetes PVC/PVs from one storage class to another
apiVersion: v1
kind: ConfigMap
metadata:
# any name can be used; Velero uses the labels (below)
# to identify it rather than the name
name: change-storage-class-config
# must be in the velero namespace
namespace: velero
# the below labels should be used verbatim in your
# ConfigMap.
@rocarvaj
rocarvaj / mpiRingISendIRecv.c
Created April 27, 2012 17:22
MPI_Send/MPI_Recv versus MPI_ISend/MPI_IRecv, ring example
/*######################################################################
Example 6 : MPI_Isend MPI_Irecv
Description:
Examples 5 and 6 demonstrate the difference between blocking
and non-blocking point-to-point communication.
Example 5: MPI_Send/MPI_Recv (blocking)
Example 6: MPI_Isend/MPI_Irecv (non-blocking)