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
#include <stdio.h> | |
#define MESSAGE_QUANTITY 10; | |
struct LEDMessage{ | |
unsigned char led_code; | |
unsigned char value; | |
unsigned int hash_sum; | |
}; |
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
#include <stdio.h> | |
#define MESSAGE_QUANTITY 10; | |
struct LEDMessage{ | |
char led_code; | |
char value; | |
unsigned int hash_sum; | |
}; |
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
docker ps -a --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}" | |
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" |
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
Правила чата https://t.me/sport_api | Sport Api | |
1. Условия действия правил чата | |
1.1 Пользователи, заходя в чат, принимают на себя добровольные обязательства беспрекословно соблюдать нижеперечисленные правила. | |
1.2 Незнание правил не освобождает от ответственности за их нарушения, убедительно рекомендуем с ними ознакомиться. | |
2. В чате разрешается | |
2.1 Общаться, общаться и ещё раз общаться, а также совершать любые другие действия не нарушающие п3. |
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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
import re | |
# 1 Пароль: только латиница, наличие строчной и заглавной буквы, цифры и минимум 12 символов | |
re.compile(r"^(?=.*[A-z0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{12,}$") | |
# 2 Номер телефона КЗ формата | |
re.compile(r"^\+?(?:7|8)\s?\(?(?:7|6)\d{2}\)?\s?\d{3}\s?\d{2}\s?\d{2}$") |
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
# -*- coding: utf-8 -*- | |
import socket | |
import os | |
print("Connecting...") | |
if os.path.exists("/tmp/python_unix_sockets_example"): | |
client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) | |
client.connect("/tmp/python_unix_sockets_example") | |
print("Ready.") | |
print("Ctrl-C to quit.") |
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
.idea | |
# Distribution / packaging | |
.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
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
__pycache__/ | |
.idea | |
.env | |
.venv | |
env/ |
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
import configparser, time, re, os | |
from tools import log as lo, listdir_fullpath | |
class Text: | |
def __init__(self, text, path): | |
self.text = text | |
self.path = path | |
def __del__(self): |