Skip to content

Instantly share code, notes, and snippets.

View Ryu1845's full-sized avatar
🎯
Focusing

Sofian Mejjoute Ryu1845

🎯
Focusing
View GitHub Profile
@eshrh
eshrh / vns-on-linux.md
Last active March 15, 2025 16:55
Personal guide to visual novels on linux

Concise visual novel setup on linux

also see this guide which has better compatibility. This guide is forked from it. written by kamui-7

This guide is very close to exactly how I run vn's on my setup. I can't guarantee it'll work for everyone (in fact, i can probably guarantee it's broken for someone/some game)

Packages i use

sudo pacman -S wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs lib32-gst-plugins-goo
@howard-haowen
howard-haowen / VectorSearch.py
Last active April 4, 2024 16:41
Text similarity search using sentence_transformers and faiss
# Reference: kstathou/acl-search-engine
# !pip install faiss-cpu --no-cache
# !pip install sentence_transformers
import faiss
import numpy as np
import pandas as pd
import pickle
import torch
@j-adamczyk
j-adamczyk / knn_with_faiss.py
Created September 12, 2020 12:14
k nearest neighbors classifier with faiss library
import numpy as np
import faiss
class FaissKNeighbors:
def __init__(self, k=5):
self.index = None
self.y = None
self.k = k
@huchenxucs
huchenxucs / pos_embed.py
Created July 23, 2020 06:09
T5 relative positional embedding
import math
import torch
import torch.nn as nn
from torch.nn import functional as F
class RelativePositionBias(nn.Module):
def __init__(self, bidirectional=True, num_buckets=32, max_distance=128, n_heads=2):
super(RelativePositionBias, self).__init__()
self.bidirectional = bidirectional
@jonashaag
jonashaag / gist:7ca5b19abf537a447d0de1b923043f45
Last active March 28, 2024 12:20
T60/RT60, C50/C80, D in Python
import librosa
from scipy.signal import butter, lfilter
SR = 8000
NFFT = 256 # change ~proportionally to SR
def butter_bandpass(lowcut, highcut, fs, order=5):
nyq = 0.5 * fs
low = lowcut / nyq
@witmin
witmin / ffmpeg-mp4-to-animated-webp.md
Last active March 21, 2025 11:48
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

All albums uploaded to the /jp/ denpa thread since June 2018.
IF A LINK IS DEAD PLEASE CHECK THE LINKS HERE FIRST: https://gist.github.com/dnpcllctns/9424fcc4c80429253d3194251b4a15ed
If it's not there/not available then comment and let me know!
For uploads 2016 - 2018 see https://nyaa.si/view/1068471 or https://gist.github.com/dnpcllctns/9424fcc4c80429253d3194251b4a15ed
June - December 2018:
妄想の旅団 - 古代アイドル!黄泉比良坂88! (FLAC) - https://mega.nz/#F!W8UUVSwJ!1H_Y1fn55w-PqFqP0UUy-g
妄想の旅団 - ゆりゆりやんもえフィーバー (FLAC) - https://mega.nz/#F!ihFCCS7L!0fN-sPmjfW1r76DSW_EQ8w
シルクパラソル collection- https://mega.nz/#F!K91hzIqS!PPuzfXX0neFufLV5-le6Ww
とろ美 ‐ ねぎとろ美 - https://mega.nz/#!qgE01IjJ!C4IV1FwCy81ZqYpRM_AUx1mDeQIag1HvlWjdPyNHJxk
@dnpcllctns
dnpcllctns / denpa
Last active November 23, 2024 10:50
denpa
denpa collections.
Credit and thanks to all the original uploaders and those who have archived it so far.
Hopefully this will be a helpful addition. Long live denpa!
Updated April 2021. Please comment or email [email protected] if you have any requests/suggestions/problems.
Uploads from the /jp/ thread since June 2018:
https://gist.github.com/dnpcllctns/f79394cd283ee30834ee6e4bb484b502
Uploads from the "/jp/ Denpa Thead Collection (Jan 2016 - Jun 2018)" torrent that aren't included below:
https://mega.nz/#F!74shSKyB!uvt6pnVg0VSctLwd8D6mbA
@CharlieScarver
CharlieScarver / AdventureTime.csv
Last active April 7, 2025 19:05 — forked from austinpray/AdventureTime.csv
List of important adventure time episodes
Season Episode Title Reason
1 5 The Enchiridion A good intro to the series, plus introduces the important Enchiridion
1 2 Trouble in Lumpy Space* Introduces LSP (episode out of order)
1 3 Prisoners of Love Introduces Ice King and his obsession (episode out of order)
1 7 Ricardio the Heart Guy Finn and PB development, Sets a returning plot
1 8 Business Time* First mention of Ooo being post-apocalyptic
1 9 My Two Favorite People Intros the Jake and Lady Rainicorn plotline
1 10 Memories of Boom Boom Mountain A look at how Finn was adopted into Jake's Family
1 12 Evicted! Intros Marceline
@Octachron
Octachron / .XCompose
Created July 25, 2017 18:42
XCompose math
include "%L" # default Compose file
# exotic
<Multi_key> <o> <o> <o> : "ꙮ"
#typography
<Multi_key> <-> <-> <->: "—"