Skip to content

Instantly share code, notes, and snippets.

View MaugrimEP's full-sized avatar
😌
-̗̀ (ↀωↀ) -̖́

MaugrimEP

😌
-̗̀ (ↀωↀ) -̖́
View GitHub Profile
@francois-rozet
francois-rozet / flow_matching.py
Last active January 24, 2026 23:48
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
@Roxbili
Roxbili / overleaf_vim.js
Last active July 22, 2025 13:02
Vim-mode in overleaf
// ==UserScript==
// @name Overleaf Editor VIM Keybindings settings
// @description Vim-mode in overleaf
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @match https://www.overleaf.com/project/*
// @match https://cn.overleaf.com/project/*
// @grant none
// Source 1: https://groups.google.com/d/msg/ace-discuss/gwXMzUM17I4/9B_acHBSCQAJ
// Source 2: https://www.overleaf.com/learn/how-to/How_can_I_define_custom_Vim_macros_in_a_vimrc_file_on_Overleaf%3F
@bonlime
bonlime / get_Imagenet.sh
Last active February 28, 2026 11:06 — forked from BIGBALLON/extract_ILSVRC.sh
script for ImageNet data extract.
#!/bin/bash
#
# script to fully prepare ImageNet dataset
## 1. Download the data
# get ILSVRC2012_img_val.tar (about 6.3 GB). MD5: 29b22e2961454d5413ddabcf34fc5622
# wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar
# get ILSVRC2012_img_train.tar (about 138 GB). MD5: 1d675b47d978889d74fa0da5fadfb00e
# wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_train.tar
Open up browser console, for Chrome, hit F12 and copy-paste and enter this
$("a").filter(function(index){return $(this).text()==="unsave"}).click();setTimeout(function(){location.reload();},500);
Repeat until all items are unsaved.