Skip to content

Instantly share code, notes, and snippets.

View walkingpendulum's full-sized avatar

Oleg Yunin walkingpendulum

View GitHub Profile
@walkingpendulum
walkingpendulum / text.txt
Last active July 1, 2020 17:30
comics #2
V 2
[1. FACTORY DEMOLISHING SCENE]
As you might know, the Alpha team started
Demolishing the Workflow Worker Factory
The most significant part of the tiling department
has already been destroyed.
[2. TV SCENE]
Sounds scary, but the factory now consumes N times less energy and significantly decreased the amount of exhaust fumes.
import os
import pathlib
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
{
"type": "FeatureCollection",
"metadata": {
"name": "rent 2021",
"creator": "Yandex Map Constructor"
},
"features": [
{
"type": "Feature",
"geometry": {
haystack = [1, 2, 3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6]
needle = [2, 1, 2]
def cut_substr_once(substr, string):
substr_size = len(substr)
for ind, _ in enumerate(string):
if substr == string[ind: ind + substr_size]:
return string[:ind], string[ind + substr_size:]
from enum import Enum
from pydantic import BaseModel, Field
from typing import Union
# Artur:
{
"boundary": "geojson",
"changedBy": "string",
"integrationId": "string"