Skip to content

Instantly share code, notes, and snippets.

View seastar105's full-sized avatar

HAESUNG JEON seastar105

View GitHub Profile
@francois-rozet
francois-rozet / flow_matching.py
Last active March 13, 2025 06:17
Flow Matching in 100 LOC
#!/usr/bin/env python
import math
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from sklearn.datasets import make_moons
from torch import Tensor
from tqdm import tqdm
@dbieber
dbieber / fastbook.py
Last active October 23, 2024 17:23
fastbook speeds up the silence in audiobooks, and can speed up the non-silence too
"""Performs automatic speed edits to audio books.
Example usage:
Assuming you have an audiobook book.aax on your Desktop:
1. Convert it to wav:
ffmpeg -i ~/Desktop/book.aax ~/Desktop/book.wav
2. Adjust the speed:
@algon-320
algon-320 / auto_get_rating.html
Last active June 9, 2021 13:39
AtCoder・Codeforces・TopCoderのレーティングを取得して色付きで表示する
<p>
AtCoder : <a id="atcoder" target="_blank" style="text-decoration:none;font-weight:bold;">loading</a><br>
Codeforces : <a id="codeforces" target="_blank" style="text-decoration:none;font-weight:bold;">loading</a><br>
TopCoder SRM : <a id="topcoder" target="_blank" style="text-decoration:none;font-weight:bold;">loading</a><br>
</p>
<script type="text/javascript" src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
var ratings = { 'atcoder':0, 'codeforces':0, 'topcoder':0 };
var handles = { 'atcoder':'algon', 'codeforces':'algon_320', 'topcoder':'algon_320' };