This file contains hidden or 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 asyncio | |
| import json | |
| import logging | |
| import websockets | |
| import aioredis | |
| logging.basicConfig(level=logging.INFO) | |
| # STATE = {'value': 0} | |
| USERS = set() | 
  
    
      This file contains hidden or 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 logging | |
| logging.basicConfig(level=logging.INFO) | |
| from telegram.ext import Updater | |
| from telegram import InlineKeyboardButton, InlineKeyboardMarkup | |
| from telegram.ext import CallbackQueryHandler | |
| TOKEN = '' | |
| updater = Updater(token=TOKEN) | |
| dispatcher = updater.dispatcher | 
  
    
      This file contains hidden or 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 overpass | |
| api = overpass.API() | |
| q = 'node(around:500, 48.164152, 17.089660)[amenity~"atm|bank"]' | |
| q = 'node[amenity=car_wash](48,18,49,19)' | |
| response = api.Get(q) | |
| from pprint import pprint | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # http://stackoverflow.com/questions/19542333/websocket-server-sending-messages-periodically-in-python | |
| import tornado.httpserver | |
| import tornado.websocket | |
| import tornado.ioloop | |
| from tornado.ioloop import PeriodicCallback | |
| import tornado.web | |
| class WSHandler(tornado.websocket.WebSocketHandler): | |
| def open(self): |