Skip to content

Instantly share code, notes, and snippets.

@aNNiMON
aNNiMON / .gitignore
Last active February 17, 2024 17:59
Telefeed RSS
*.pyc
config.yml
feed.db
@aNNiMON
aNNiMON / .gitignore
Last active October 28, 2023 11:57
Reddit Images to Telegram
own-modules
main_*.own
redditimages.db
@aNNiMON
aNNiMON / EnexToJson.java
Created August 16, 2016 10:40
Converts Evernote .enex files to json
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.EnumSet;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.json.JSONArray;
@aNNiMON
aNNiMON / .gitignore
Last active July 29, 2023 15:00
PicSorter
__pycache__
.idea
input
library
logs
images.db
@aNNiMON
aNNiMON / VkApi.java
Last active March 9, 2023 20:38
VK API sample implementation for Java 8
import java.awt.Desktop;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
@aNNiMON
aNNiMON / .AudioDL.md
Last active September 26, 2022 10:16
AudioDL

AudioDL

Downloads music from Telegram to specified directory

@aNNiMON
aNNiMON / monika_decode.py
Created January 18, 2018 14:49
monika.chr code decoder and encoder | Doki Doki Literature Club
#!/usr/bin/python
import getopt
import sys
from PIL import Image
def usage():
print('Usage: monika_decode.py [-v] [FILE]')
sys.exit(2)
def main(argv):
@aNNiMON
aNNiMON / .covid-tool.md
Last active November 12, 2020 10:33
Daily statistics per region in Ukraine

covid-tool

Daily statistics per region in Ukraine

@Override
public void processUpdates(List<Update> updates) {
for (Update update : updates) {
processUpdate(update);
}
}
private void processUpdate(Update update) {
if (update == null) {
return;
@Override
public void processUpdates(List<Update> updates) {
for (Update update : updates) {
if (update != null) {
Message message = update.getMessage();
// don't process old messages
long current = System.currentTimeMillis() / 1000;
if (message.getDate() + 60 >= current) {
long chatId = message.getChatId();
if (chatId == config.tournamentChat()) {