Skip to content

Instantly share code, notes, and snippets.

View FavorMylikes's full-sized avatar
🎯
Focusing

FavorMylikes FavorMylikes

🎯
Focusing
View GitHub Profile
@FavorMylikes
FavorMylikes / RandomLineReader.java
Last active October 28, 2020 09:02
This may be the fastest way to randomly read any line of the file.
import lombok.extern.slf4j.Slf4j;
import java.io.*;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
@FavorMylikes
FavorMylikes / settings_test_snippet.py
Created December 13, 2017 19:43 — forked from NotSqrt/settings_test_snippet.py
Another shot at this problem ..
class DisableMigrations(dict):
def __contains__(self, item):
return True
def __getitem__(self, item):
return None
DATABASES = DisableMigrations()
MIGRATION_MODULES = DisableMigrations()