Skip to content

Instantly share code, notes, and snippets.

View ekiauhce's full-sized avatar
🙂
Hi there!

Daniil Belyak ekiauhce

🙂
Hi there!
View GitHub Profile
@ekiauhce
ekiauhce / sqlparse_delimiters.py
Created March 7, 2023 19:51 — forked from srittau/sqlparse_delimiters.py
sqlparse with delimiter support
# Split SQL file using sqlparse with delimiter handling.
#
# The SQL string is pre-processed before handing it off to sqlparse.split:
# DELIMITER statements are removed, semicolons within non-standard
# delimiter blocks are replaced by the Unicode Object Replacement
# Character, and custom delimiters replaced with semicolons. After
# processing the string with sqlparse.split, the Object Replacement Characters
# are replaced with semicolons again.
import re
user@dell-laptop:~/code/python/ruthelp_bot$ docker rm -f $(docker ps -a | grep ruthelp | grep bot | awk '{print $1}' | xargs)
38ee791c04e7
7f574cf46bf7
fb9d7dc7f104
1a9dd1547c0e
user@dell-laptop:~/code/python/ruthelp_bot$ docker rmi -f $(docker images -a | grep ruthelp | awk '{print $3}' | xargs)
Untagged: ekiauhce/ruthelp-bot:latest
Untagged: ekiauhce/ruthelp-bot@sha256:c22b56cc2b8405b0b5afe3b8ec53debdb8e870e45e39fe7fb49e6e6bcec1832c
Deleted: sha256:07e4aa9ad21105b0a678976b0719c0e3dc00d1db18448409b3b037ca66e55f63

Обычный метод, точность корней 2

Initial a:
  2.2400000000   3.4600000000   0.5000000000  -1.4000000000 
 -1.7300000000  -2.6785714286   3.2000000000   2.5000000000 
 -1.1000000000   4.2000000000  -3.2000000000   0.8000000000 
  7.9000000000  -5.2000000000   0.3000000000   2.9000000000 
Initial b:
  4.5000000000   0.7000000000   0.9000000000   6.2000000000