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
| using System; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Windows.Forms; | |
| public class Form1 : Form | |
| { | |
| private DataTable table = new DataTable(); | |
| private MyDataGridView dataGridView1 = new MyDataGridView(); | |
| private DataGridView dataGridView2 = new DataGridView(); |
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
| char __fastcall ClientCache::WriteQuestEntry(int *a1, __int64 a2) | |
| { | |
| _DWORD *v2; // rdi | |
| int *v3; // r12 | |
| int *v4; // rbx | |
| signed __int64 v5; // rsi | |
| int *v6; // rbx | |
| signed __int64 v7; // rsi | |
| int *v8; // rbx | |
| signed __int64 v9; // rsi |
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
| using System.Collections.Generic; | |
| using System.Data.Common; | |
| using System.Globalization; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| namespace System.Data.MapperExtension | |
| { | |
| /// <summary> | |
| /// Make field name for mapping. |
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
| char __fastcall ClientCache::WriteCreatureRecord(__int64 a1, __int64 a2) | |
| { | |
| __int64 v2; // r13 | |
| __int64 v3; // r12 | |
| unsigned int v4; // ebx | |
| unsigned int v5; // edi | |
| unsigned int v6; // esi | |
| char v7; // bl | |
| unsigned int v8; // edx | |
| char v9; // dl |
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
| /run frame=CreateFrame("Frame");frame:SetScript("OnEvent",function(s,e,...) if e == "COMBAT_LOG_EVENT_UNFILTERED" then print(CombatLogGetCurrentEventInfo()) end end);frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");frame:Show() | |
| /dump C_ActionBar.FindSpellActionButtons(123); | |
| local ACTION_BAR_TYPES = { 'Action', 'MultiBarBottomLeft', 'MultiBarBottomRight', 'MultiBarRight', 'MultiBarLeft' }; | |
| function GetHotKeyBySpellId(spellId) | |
| local actionList = C_ActionBar.FindSpellActionButtons(spellId); |
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
| # Turn off "Connected User Experiences and Telemetry" service | |
| # Отключить службу "Функциональные возможности для подключенных пользователей и телеметрия" | |
| Get-Service -Name DiagTrack | Stop-Service -Force | |
| Get-Service -Name DiagTrack | Set-Service -StartupType Disabled | |
| # Turn off per-user services | |
| # Отключить пользовательские службы | |
| $services = @( | |
| # Contact Data | |
| # Служба контактных данных | |
| "PimIndexMaintenanceSvc_*" |
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
| using System; | |
| using System.Diagnostics; | |
| using System.Collections; | |
| using System.Runtime.InteropServices; | |
| using System.Management; | |
| using System.ServiceProcess; | |
| namespace ConsoleApplication2 | |
| { |
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
| declare @fldList table(nm varchar(128)); | |
| select drv.IdZap | |
| , drv.dorogaid | |
| , dor.MNKD as DorName | |
| , Depo_Rem | |
| , fosv.SNAME as Depo_RemName | |
| , vag_GR | |
| , Or_Pr | |
| , Prich_Otkl |
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
| select count(*) | |
| -- delete | |
| from kcmod.dbo.THP_SpisHead where | |
| Create_dt < '20150101' or ( | |
| Create_dt < '20200101' and ( | |
| ISNUMERIC([name]) = 1 -- число как имя списка | |
| or Kol < 5 -- количетво вагонов меньше 5 | |
| or len([name]) < 5 -- имя списка короче 5 символов | |
| or [name] like '%ааа%' | |
| or [name] like '%ббб%' |
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
| use kcmod | |
| go | |
| select ISTK.Nom_Vag, | |
| case | |
| when ISTK.PoluchOKPO>0 | |
| then coalesce( | |
| (select top 1 '' from dbo.nsDoroga) | |
| , 'ОКПО грузополучателя - '+cast(ISTK.PoluchOKPO as varchar(123)) | |
| , '' |