Skip to content

Instantly share code, notes, and snippets.

View KalinovDmitri's full-sized avatar

Dmitry Kalinov KalinovDmitri

  • pravo.ru
  • Russia, Samara
View GitHub Profile
DECLARE @kindId UNIQUEIDENTIFIER = '2E42CD9A-66FA-471E-BA75-5A74D36E05D3'; -- place target Kind here
DECLARE @folderId UNIQUEIDENTIFIER = 'D0134C4C-2B33-45BC-9B3A-EEFCEF855C87'; -- place target Folder here
SELECT
[DocMainInfo].[InstanceID] AS [CardID],
[InstanceDates].[CreationDateTime],
@folderId AS [FolderID]
FROM [dbo].[CardDocument::MainInfo] AS [DocMainInfo]
INNER JOIN [dbo].[dvsys_instances_date] AS [InstanceDates] ON ([InstanceDates].[InstanceID] = [DocMainInfo].[InstanceID])
INNER JOIN [dbo].[CardDocument::System] AS [DocSystemInfo] ON ([DocSystemInfo].[InstanceID] = [DocMainInfo].[InstanceID])
DECLARE @First TABLE
(
[InstanceID] UNIQUEIDENTIFIER NOT NULL
);
DECLARE @Second TABLE
(
[CogProgramOptions] VARCHAR(MAX) NOT NULL,
[SomeOtherValue] INT NOT NULL
$asm = [System.Reflection.Assembly]::Load("System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
$client = New-Object -TypeName System.Net.Http.HttpClient;
$url = "https://sandbox-api.coinmarketcap.com/v1/cryprocurrency/listings/latest?start=0&limit=5000&convert=USD,EUR";
$msg = New-Object -TypeName System.Net.Http.HttpRequestMessage -ArgumentList ([System.Net.Http.HttpMethod]::Get, $url);
$msg.Headers.Accept.Add("application/json");
$msg.Headers.Add("X-CMC_PRO_API_KEY", "b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c");
$response = $client.SendAsync($msg);
$response.Result
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Mvc;
using NetMvcExample.Models;
namespace NetMvcExample.Controllers
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace MyBooks.Models
{
public class Book
{
-- declare all required tables
CREATE TABLE [dbo].[Abonents]
(
[Id] BIGINT NOT NULL IDENTITY(1, 1) PRIMARY KEY NONCLUSTERED,
[FirstName] NVARCHAR(64) NOT NULL,
[LastName] NVARCHAR(64) NOT NULL,
[Phone1] VARCHAR(20) NULL,
[Phone2] VARCHAR(20) NULL,
using System;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CodeSamples.Common.Diagnostics
{
public class SomeCalcController : Controller
{
public ActionResult DoCalc(SomeCalc calc)
{
calc.DoCalc();
calc.Save();
}
}
<Style x:Key="UnderlinedOnMouseOverButtonStyle" TargetType="{x:Type Button}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock TextDecorations="Underline" Text="{TemplateBinding Content}"/>
</DataTemplate>
</Setter.Value>
</Setter>