View sap_portal_params.txt
BI_COMMAND_22 | |
BI_COMMAND_22-BI_COMMAND_TYPE CLEAR_SELECTION_STATE | |
BI_COMMAND_22-TARGET_DATA_PROVIDER_REF_LIST | |
BI_COMMAND_22-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1 DP_1 | |
BI_COMMAND_22-CHARACTERISTIC ZVCH_NETS | |
BI_COMMAND_23 | |
BI_COMMAND_23-BI_COMMAND_TYPE CLEAR_SELECTION_STATE | |
BI_COMMAND_23-TARGET_DATA_PROVIDER_REF_LIST | |
BI_COMMAND_23-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1 DP_3 | |
BI_COMMAND_23-CHARACTERISTIC ZVCH_NETS |
View to_xml.ps1
$f = Get-Content -Path D:\dat.txt | |
$data = ConvertFrom-Csv -Delimiter "`t" -InputObject $f | |
$data = $data | Sort-Object -Property "Тип заявки", "Объект", "Первичный идентификатор" | |
$groups = $data | Group-Object -Property "Тип заявки" | |
$xmlsettings = New-Object System.Xml.XmlWriterSettings | |
$xmlsettings.Indent = $true | |
foreach ($i in $groups) { | |
$XmlWriter = [System.Xml.XmlWriter]::Create("D:\$($i.Name).xml", $xmlsettings) |
View powerpoint_addin_name.bas
Function project_id() As Long | |
' Generate project ID (1-1000) to find it in Application.AddIns collection | |
Static unique As Long | |
If unique = 0 Then | |
Randomize | |
unique = Int((1000 - 1 + 1) * Rnd + 1) | |
End If | |
project_id = unique | |
End Function |
View mikrotik_helper
local download do={ | |
# Download file: [$download "src_url" "dst_file"] returns boolean | |
do { | |
/tool fetch $1 dst-path=$2 | |
while ([len [/file find name=$2]] = 0) do={delay 0.1} | |
return true | |
} on-error={ | |
return false | |
} | |
} |
View cv2.py
# -*- coding: utf-8 -*- | |
""" | |
Редактор Spyder | |
Это временный скриптовый файл. | |
""" | |
#import numpy as np | |
#import cv2 as cv | |
#filename = r"F:\Captura3.PNG" |
View pooled.py
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Feb 10 16:32:44 2018 | |
@author: МакаровАС | |
""" | |
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor | |
import time |
View np_datetime_strings.c
.... | |
/* | |
* Wraps `localtime` functionality for multiple platforms. This | |
* converts a time value to a time structure in the local timezone. | |
* | |
* Returns 0 on success, -1 on failure. | |
*/ | |
static int get_localtime(NPY_TIME_T *ts, struct tm *tms) { | |
char *func_name = "<unknown>"; | |
#if defined(_WIN32) |
View gist:c214a6a25a9534d6b4ce36b4523da487
tribution | |
writing manifest file 'pandas.egg-info\SOURCES.txt' | |
running build_ext | |
skipping 'pandas\_libs\join.c' Cython extension (up-to-date) | |
skipping 'pandas\_libs\index.c' Cython extension (up-to-date) | |
building 'pandas._libs.index' extension | |
D:\andray\Software\Python\WinPython-32bit-3.4.4.5Qt5\python-3.4.4\Scripts\gcc.ex | |
e -mdll -O -Wall -Ipandas/_libs/src/klib -Ipandas/_libs/src -ID:\andray\Software | |
\Python\WinPython-32bit-3.4.4.5Qt5\python-3.4.4\lib\site-packages\numpy\core\inc | |
lude -ID:\andray\Software\Python\WinPython-32bit-3.4.4.5Qt5\python-3.4.4\include |
View read_link.py
import locale | |
import struct | |
def __readLink(path): | |
# http://stackoverflow.com/a/28952464/1119602 | |
with open(path, 'rb') as stream: | |
content = stream.read() | |
# skip first 20 bytes (HeaderSize and LinkCLSID) | |
# read the LinkFlags structure (4 bytes) | |
lflags = struct.unpack('I', content[0x14:0x18])[0] |
View logcat.txt
--------- beginning of main | |
11-21 21:31:53.497 153 153 W auditd : type=2000 audit(0.0:1): initialized | |
11-21 21:31:56.294 161 161 I /system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required. | |
11-21 21:31:56.409 164 164 I sysinit : Running /system/etc/init.d/00banner | |
--------- beginning of system |
NewerOlder