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
Sub Macro1() | |
'Enable diagram services | |
Dim DiagramServices As Integer | |
DiagramServices = ActiveDocument.DiagramServicesEnabled | |
ActiveDocument.DiagramServicesEnabled = visServiceVersion140 | |
Application.Settings.SetRasterExportResolution visRasterUseScreenResolution, 96#, 96#, visRasterPixelsPerInch | |
Application.Settings.SetRasterExportSize visRasterFitToSourceSize, 8.979167, 2.197917, visRasterInch | |
Application.Settings.RasterExportDataFormat = visRasterInterlace |
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 python | |
# -*- coding: utf-8 -*- | |
# | |
# abook.py | |
# | |
import string | |
import datetime | |
import os | |
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 urlparse | |
import sys | |
from subprocess import Popen | |
urlparse.uses_params += ['telnet',] | |
class HelpException(Exception): | |
pass |
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 |
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
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
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 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
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
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() |
OlderNewer