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
@z3z1ma
z3z1ma / sql_ls.py
Last active October 25, 2024 23:01
A simple language server implementation for SQLMesh using PyGLS
#!/usr/bin/env python
"""A Language Server Protocol (LSP) server for SQL with SQLMesh integration."""
import asyncio
import gc
import io
import logging
import re
import typing as t
import weakref
@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
@steven2358
steven2358 / ffmpeg.md
Last active November 11, 2024 04:45
FFmpeg cheat sheet
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active September 15, 2024 18:49
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 15, 2024 09:51
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname