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
#encoding: utf-8 | |
import os | |
import platform | |
from Microsoft.Win32 import Registry | |
import System | |
import clr | |
clr.AddReference('System.Windows.Forms') |
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 concurrent.futures | |
import unittest | |
from collections import deque, Counter | |
import time | |
class QList(list): | |
def __init__(self, seq=()): | |
super().__init__(seq) |
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 setup_logging(project='test'): | |
def namer(name): | |
return name.replace('.txt.', '.')+".txt" | |
logging.getLogger("requests").setLevel(logging.WARNING) | |
logger = logging.getLogger('') | |
formatter = logging.Formatter('%(asctime)s %(message)s', datefmt='%Y.%m.%d %H:%M:%S') | |
logger.setLevel(logging.DEBUG) | |
console = logging.StreamHandler() |
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 setup_logging(project='test'): | |
def namer(name): | |
return name.replace('.txt.', '.')+".txt" | |
logging.getLogger("requests").setLevel(logging.WARNING) | |
logger = logging.getLogger('') | |
formatter = logging.Formatter('%(asctime)s %(message)s', datefmt='%Y.%m.%d %H:%M:%S') | |
logger.setLevel(logging.DEBUG) | |
console = logging.StreamHandler() |
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
Bus 002 Device 006: ID 10c4:8066 Cygnal Integrated Products, Inc. | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 1.10 | |
bDeviceClass 0 (Defined at Interface level) | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 64 | |
idVendor 0x10c4 Cygnal Integrated Products, Inc. |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/SnI0YzNhPJ+XQfpV/8hS4hMFIiLWx2krMCQ1YCp/Ks0wQd8L4DSGDuJ1cfSOAfYU74s/ByCmlVD5FS4lVTEPbTAe34QrmKuSxPPUJb2z9ROUYrz+i1zbZLlGT8hTjo4PTGtxmdo0BZ3sS5+iUP9LFg2nvoNevY4GyoEVXTtsnMOJzCIi3mM8lOHH+u8fbwatkanbcVxNlojEt6WeFhuia2hnWOliY8lDSm7/73fKpXiDWcvnr02UuzjQC6fdBAVlXiKuVL3XeVc2KrIma4GEFrrNhnGHDGYdamwJu0aYzlK6ty/cD5/S6DojqLvWkUQ/DSEz7MhA3vcmsIlMb07d pavel@virt01 |
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
var svgNS = "http://www.w3.org/2000/svg"; | |
var width = 90; | |
var height = 70; | |
var firstRow = height / 4; | |
var secondRow = height / 4 * 3; | |
var radius = 5; | |
var leftArrow = width / 4; | |
var rightArrow = width / 4 * 3; | |
var delta = width / 4; |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC58j9WM+mLOWsIhL89JkiuOe97/6FExkw+kSL8bFohlzsbZQ4g4SvuS8iBSVJOy18EOcBMy38PdA/ONwJr8aCHDHxUaKqFT+Kh241QVk7vq8qTOWZS1JstyJ4NymEmMoaaqQvO3kZ0jx7+P8aRL13m9nZe3ntpV0W0LVvbC5vqRMGsS2R6nq65eXg95K1DNqONg89/iXD3CnBu3J/dtzTD0+00tLMbipEf79iiFspTKVYq9I0/tXT+91Z14/xGDeMyemi4NlQCW155qf+am9eYpkpje7w+YAR+o3iBjub5eNGjpXlksD355rNmlWSohVD1a+Snj+jTa+4jfmLzpSmx | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC58j9WM+mLOWsIhL89JkiuOe97/6FExkw+kSL8bFohlzsbZQ4g4SvuS8iBSVJOy18EOcBMy38PdA/ONwJr8aCHDHxUaKqFT+Kh241QVk7vq8qTOWZS1JstyJ4NymEmMoaaqQvO3kZ0jx7+P8aRL13m9nZe3ntpV0W0LVvbC5vqRMGsS2R6nq65eXg95K1DNqONg89/iXD3CnBu3J/dtzTD0+00tLMbipEf79iiFspTKVYq9I0/tXT+91Z14/xGDeMyemi4NlQCW155qf+am9eYpkpje7w+YAR+o3iBjub5eNGjpXlksD355rNmlWSohVD1a+Snj+jTa+4jfmLzpSmx pavel@laptop (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
#! /usr/bin/python3 | |
import cmd | |
import os | |
def parseCoord(pos, limit): | |
""" | |
'40' => 40px | |
'10%' => 10% of limit |
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
Private WithEvents oldFolder As Items | |
Private WithEvents newFolder As Items | |
Private Sub Application_Startup() | |
Set oldFolder = Application.Session.DefaultStore.GetRootFolder.Folders("Âõîäÿùèå").Folders("Servicedesk").Folders("Íàçíà÷åííûå çàÿâêè").Items | |
Set newFolder = Application.Session.DefaultStore.GetRootFolder.Folders("Âõîäÿùèå").Folders("Servicedesk").Folders("Íîâûé ServiceDesk").Items | |
MsgBox "Startup" | |
MsgBox oldFolder.Count | |
MsgBox newFolder.Count |