Skip to content

Instantly share code, notes, and snippets.

View giovannipcarvalho's full-sized avatar
🪲
Patch me if you can!

Giovanni Paolo giovannipcarvalho

🪲
Patch me if you can!
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 16, 2024 20:53
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active May 14, 2024 07:49
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@steven2358
steven2358 / ffmpeg.md
Last active May 10, 2024 20:57
FFmpeg cheat sheet
@anna-hope
anna-hope / torchtext_pandas_datasets.py
Created May 30, 2019 18:36
Torchtext dataset and iterator wrappers for Pandas DataFrames
from typing import Union, Dict
import pandas as pd
from torchtext.data import (Field, Example, Iterator, BucketIterator, Dataset)
from tqdm import tqdm
class DataFrameExampleSet:
def __init__(self, df: pd.DataFrame, fields: Dict[str, Field]):
self._df = df