- Медитация - нужно много времени
- Складывать вещи
- Книга Мари Кондо о наведении порядка. Вертикальное хранение вещей https://www.youtube.com/watch?v=IjkmqbJTLBM
- GDT - get things done https://hamberg.no/gtd
- Жонглировать тремя мячиками - координация, отдых для глаз, осанка https://jugglers.ru/uchebnik-zhonglirovaniya/kak-nauchitsya-zhonglirovat
- Готовить сырники
- Собственная безопасность
- Оказание первой помощи (туториалы на YouTube) - нужно много времени
This file contains hidden or 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 -*- | |
""" | |
Created on Sat Feb 10 16:32:44 2018 | |
@author: МакаровАС | |
""" | |
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor | |
import time |
This file contains hidden or 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 -*- | |
""" | |
Редактор Spyder | |
Это временный скриптовый файл. | |
""" | |
#import numpy as np | |
#import cv2 as cv | |
#filename = r"F:\Captura3.PNG" |
This file contains hidden or 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
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 | |
} | |
} |
This file contains hidden or 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
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 |
This file contains hidden or 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
$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) |
This file contains hidden or 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
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 |
This file contains hidden or 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 functools import total_ordering | |
# @total_ordering | |
class Int(int): | |
def __lt__(self, other): | |
this, that = str(self), str(other) | |
YES, NO = True, False | |
if len(this) < len(that): # everything is vice versa | |
this, that = that, this | |
YES, NO = NO, YES |
This file contains hidden or 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 pickle | |
import threading | |
import time | |
import ipywidgets as widgets | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def init_history_plot(): |
This file contains hidden or 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
$glob_var = 0 | |
Function Generate-Form { | |
Add-Type -AssemblyName System.Windows.Forms | |
Add-Type -AssemblyName System.Drawing | |
# Build Form | |
$Form = New-Object System.Windows.Forms.Form | |
$Form.Text = "My Form" |