Skip to content

Instantly share code, notes, and snippets.

View satels's full-sized avatar
🌴
On vacation

Ivan Petukhov satels

🌴
On vacation
  • Mister Exam
  • USA, California
View GitHub Profile
@satels
satels / automata.py
Last active August 17, 2018 09:18 — forked from Arachnid/automata.py
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
@satels
satels / calltoolsru_python.py
Last active September 3, 2018 11:59
Языки программирования: Python, Ruby. Создание звонка через API calltools.ru и получение результата на PostBack url
import requests
# Полная и актуальная документация по API: https://calltools.ru/guide_api
CALLTOOLS_PUBLIC_KEY = 'test_public_key'
CALLTOOLS_BASE_URL = 'https://calltools.ru'
CALLTOOLS_TIMEOUT = 30
data_origin = '''
/s/proizvodnaya-funktsii/one/expr/e5c7df69779266014ee2abd8633d22c6/ /s/proizvodnaya-funktsii/one/expr/e84a341e81d7618ab1e6572f8cd4e0f5/
/s/integral/opredelennyij/expr/0a07e67aeef8340c43bc12e5a39e31fc/ /s/integral/opredelennyij/expr/2305572440380a685c96e4723c6e221e/
/s/integral/opredelennyij/expr/efe79207f04d885291d4d81af006bd89/ /s/integral/opredelennyij/expr/f5784a19f5731f525932fbe5171c9c68/
/s/integral/opredelennyij/expr/9ac470eccd3959a5ae7636fad27678fd/ /s/integral/opredelennyij/expr/7bea0b098e43061cded55722e971172a/
/s/proizvodnaya-funktsii/one/expr/a9ae639cddffccdc89cba56af8827342/ /s/proizvodnaya-funktsii/one/expr/fb0232ff2f9d3b7ec138d7238091767e/
/s/proizvodnaya-funktsii/one/expr/b87a3f721b3299d40e67acaf17c7abd0/ /s/proizvodnaya-funktsii/one/expr/aa65f1e5d499922f398100fd27770ea3/
/s/proizvodnaya-funktsii/one/expr/b4aebf95d8e4763b6fc6011a07b660a4/ /s/proizvodnaya-funktsii/one/expr/4aec095058a00f24e2864ac973538182/
/s/proizvodnaya-funktsii/one/expr/64548084e44b8e41d42501657e8d1db8/ /s/p