Skip to content

Instantly share code, notes, and snippets.

import telegram, datetime, calendar, locale
from telegram import InlineKeyboardMarkup, InlineKeyboardButton, InputMediaPhoto
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, MessageHandler, Filters
def start(update, context):
keyboard = [[
InlineKeyboardButton('Calendario', callback_data='calendar'),
InlineKeyboardButton('💶 Prezzi', callback_data='prices')
], [
@dpryden
dpryden / ClassLoaderLeakExample.java
Created October 20, 2014 00:01
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,