Daily statistics per region in Ukraine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__pycache__ | |
.idea | |
input | |
library | |
logs | |
images.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc | |
config.yml | |
feed.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void processUpdates(List<Update> updates) { | |
for (Update update : updates) { | |
processUpdate(update); | |
} | |
} | |
private void processUpdate(Update update) { | |
if (update == null) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TelegramBot { | |
def TelegramBot(token) { | |
this.token = token | |
} | |
def getUpdatesSync() = this.invokeJsonSync("getUpdates").result | |
def getFileSync(fileId) = this.invokeJsonSync("getFile", {"file_id": fileId}).result | |
def sendPhoto(chatId, photo, callback = 0) { | |
return this.invokeJson("sendPhoto", { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
own-modules | |
main_*.own | |
redditimages.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Spliterator; | |
import java.util.concurrent.CopyOnWriteArrayList; | |
import java.util.function.Consumer; | |
import java.util.stream.Collectors; |
NewerOlder