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 socket | |
| HOST = "127.0.0.1" | |
| PORT = 8080 | |
| with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock: | |
| sock.bind((HOST, PORT)) | |
| print(f"UDP server listening on {HOST}:{PORT}...") | |
| while True: |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Paper 16 OCR Decoder</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); | |
| body { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Image OCR Tool</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); | |
| body { |
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 base64 | |
| import os | |
| from PIL import Image | |
| import argparse # Import the argparse module | |
| def convert_png_to_embedded_svg(png_path, svg_path): | |
| if not os.path.exists(png_path): | |
| print(f"Error: PNG file not found at '{png_path}'") | |
| return None | |
| try: |
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
| #!/bin/bash | |
| while true; do | |
| pkill -f TGOnDeviceInferenceProviderService | |
| sleep 5 | |
| done | |
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
| func printSelf() { | |
| #if DEBUG | |
| do { | |
| try dbQueue.read { db in | |
| let tables = try Row.fetchAll(db, sql: "SELECT name FROM sqlite_master WHERE type='table'") | |
| for table in tables { | |
| if let tableName = table["name"] as? String { | |
| print("Table: \(tableName)") | |
| // Fetch and print all rows for this table |
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 Foundation | |
| final class Benchmark { | |
| private let title: String | |
| private let startDate: Date | |
| init(title: String) { | |
| self.title = title | |
| self.startDate = Date() | |
| debugPrint("\(title) Benchmark started;") |
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
| ['json/1_pass_1.json', 'json/1_pass_2.json', 'json/1_pass_3.json', 'json/1_pass_4.json', 'json/1_pass_5.json'] | |
| 3 отделом милиции Орехово-Зуевского УВД Московской области 503-074 03. Елисеев Евгений Михайлович муж 27. г. Орехово-Зуево Московской обл. 08. 2001 05. 1976 РОВД Хорошево-Мневники гор. Москвы 15. 06. 1999 772-092 Ермаков Сергей Гарриевич муж 20. 05. 1983 Москва гор. 3 отделением милиции УВД Администрации Ногинского района Московской области 10.10.2002 502-067 Копаев Алексей Дмитриевич муж. гор. Челябинск 05.11.1981 ОВД "Люблино" г. Москвы 25.07.2001г 772-103 Тюнеев Валерий Юрьевич муж 24.01.1976г. гор. Москвы РОВД "Хорошево-Мневники" гор. Москвы 15.06.1999 772-092 Ермаков Сергей Гарриевич муж. 20.05.1983 гор. Москва | |
| Этот текст из паспорта. Это содержит основные данные человека, в том числе изменения adresа проживания, семейного положения и другие личные детали. | |
| --- | |
| ['json/2_p_10.json', 'json/2_p_11.json', 'json/2_p_12.json', 'json/2_p_13.json', 'json/2_p_14.json', 'json/2_p_15.json', 'json/2_p_1 |
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
| ['json/1_pass_1.json', 'json/1_pass_2.json', 'json/1_pass_3.json', 'json/1_pass_4.json', 'json/1_pass_5.json'] | |
| 3 отделом милиции Орехово-Зуевского УВД Московской области 503-074 03. Елисеев Евгений Михайлович муж 27. г. Орехово-Зуево Московской обл. 08. 2001 05. 1976 РОВД Хорошево-Мневники гор. Москвы 15. 06. 1999 772-092 Ермаков Сергей Гарриевич муж 20. 05. 1983 Москва гор. 3 отделением милиции УВД Администрации Ногинского района Московской области 10.10.2002 502-067 Копаев Алексей Дмитриевич муж. гор. Челябинск 05.11.1981 ОВД "Люблино" г. Москвы 25.07.2001г 772-103 Тюнеев Валерий Юрьевич муж 24.01.1976г. гор. Москвы РОВД "Хорошево-Мневники" гор. Москвы 15.06.1999 772-092 Ермаков Сергей Гарриевич муж. 20.05.1983 гор. Москва | |
| Этот текст представляет собой набор билетов из паспорта или трудовой книжки человека, а именно: | |
| 1. Паспорт: | |
| - Елисеев Евгений Михайлович | |
| - Ермаков Сергей Гарриевич (дважды) |
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 requests | |
| import sys | |
| import argparse | |
| parser = argparse.ArgumentParser(description="Upload or update a WordPress post.") | |
| parser.add_argument("--post", required=True, help="Path to the post file.") | |
| parser.add_argument("--url", required=True, help="URL of the WordPress site.") | |
| args = parser.parse_args() | |
| file_path = args.post |
NewerOlder