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
from __future__ import with_statement | |
from alembic import context | |
from sqlalchemy import engine_from_config, pool | |
from logging.config import fileConfig | |
from models import Base | |
config = context.config | |
fileConfig(config.config_file_name) |
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
<!-- подключение внешнего файла css --> | |
<head> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
</head> |
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
#!/usr/bin/env python3 | |
import subprocess | |
import time | |
from os import walk, path, chdir | |
import re | |
regex = re.compile(r'([0-9a-f]+)_(\w+)\.py') | |
date_re = re.compile(r'(\d+)-(\d+)-(\d+) (\d+):(\d+)') | |
chdir('/alembic_/versions') | |
for root, dirs, files in walk('/alembic_/versions'): |
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
<!-- | |
* Метод document.getElementsByTagName() | |
--> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function getElements() { | |
var x=document.getElementsByTagName("input"); | |
console.log(x.length); |
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
Service: 00001800-0000-1000-8000-00805f9b34fb | |
Characteristic: 00002a00-0000-1000-8000-00805f9b34fb | |
READ WRITE | |
b'MJ_HT_V1' | |
Characteristic: 00002a01-0000-1000-8000-00805f9b34fb | |
READ | |
b'\x00\x03' | |
Characteristic: 00002a04-0000-1000-8000-00805f9b34fb | |
READ | |
b'\x10\x00<\x00\x00\x00\x90\x01' |
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
/* | |
Created 2016 | |
by AlexGyver | |
AlexGyver Home Labs Inc. | |
*/ | |
char masschar[5]; //массив символов для перевода | |
String massstring; //строка, в которую задаётся масса в режиме выбора массы | |
int set,setmass,rapidtime; | |
boolean initial,flagmass, flagmassset, rapidflag; //флажки | |
int n=1; //номер выстрела, начиная с 1 |
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
Service: 00001800-0000-1000-8000-00805f9b34fb | |
Characteristic: 00002a00-0000-1000-8000-00805f9b34fb | |
READ | |
b'LYWSD02' | |
Characteristic: 00002a01-0000-1000-8000-00805f9b34fb | |
READ | |
b'\x00\x00' | |
Service: 00001801-0000-1000-8000-00805f9b34fb | |
Characteristic: 00002a05-0000-1000-8000-00805f9b34fb | |
READ INDICATE |
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
def sum(a, b): | |
return a + b | |
print(sum(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
.overlay { | |
position: fixed; | |
z-index: 100; | |
top: 0; | |
left: 0; | |
height: 100%; | |
width: 100%; | |
background-color: #000; | |
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=55); | |
opacity: 0.55; |
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
00001800-0000-1000-8000-00805f9b34fb Generic Access | |
00002a00-0000-1000-8000-00805f9b34fb READ WRITE | |
b'ClearGrass Temp & RH' | |
Device Name | |
00002a01-0000-1000-8000-00805f9b34fb READ | |
b'\x00\x00' | |
Appearance | |
00002a04-0000-1000-8000-00805f9b34fb READ | |
b'\x10\x00<\x00\x00\x00\x90\x01' | |
Peripheral Preferred Connection Parameters |
NewerOlder