Instantly share code, notes, and snippets.

# Dmitry Nikolaev EtsuNDmA

Last active June 23, 2024 19:06
An incomplete list of people in the Python community to follow on Twitter and Mastodon.

# Python People

An incomplete list of people in the Python community to follow on Twitter and Mastodon.

With the risk that Twitter dies, I'd be sad to lose links to interesting people in the community, hence this list.

I would love you to comment below with links to people I've missed.

Last active June 6, 2024 08:48
Небольшая шпаргалка по библиотечке respx
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
 """ Небольшая шпаргалка по библиотечке respx. Все это есть в документации https://lundberg.github.io/respx/guide/, но местами написано очень коротко и не очевидно. Зависимости: python > 3.10, httpx, respx, pytest-asyncio """ from typing import Any import httpx import pytest
Last active July 7, 2023 13:36
Fréchet Distance in Python
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
 # Euclidean distance. def euc_dist(pt1,pt2): return math.sqrt((pt2[0]-pt1[0])*(pt2[0]-pt1[0])+(pt2[1]-pt1[1])*(pt2[1]-pt1[1])) def _c(ca,i,j,P,Q): if ca[i,j] > -1: return ca[i,j] elif i == 0 and j == 0: ca[i,j] = euc_dist(P[0],Q[0]) elif i > 0 and j == 0:
Created February 13, 2015 08:22
Simplification of a 3D polyline using the Ramer–Douglas–Peucker algorithm in Swift
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
 // // Simplify.swift // // Simplification of a 3D-polyline. // A port of https://github.com/hgoebl/simplify-java for Swift // // // The MIT License (MIT) // // Created by Lachlan Hurst on 10/02/2015.