Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using iTunesLib;
namespace ConsoleApp1
{
class Program
{
Command:
C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe
Compare:
/title1=%6 /title2=%7 %1 %2
Merge:
using System;
using System.Data.SQLite;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace ClipboardDiff {
class Program {
static void Main(string[] args) {
string text1 = null;
var name = "directory name";
var path = @"c:\temp\dirtest";
for (int i = 0; i < 12; i++)
{
CreateDirectory(name, path);
}
void CreateDirectory(string directoryName, string filePath)
{
public enum DistanceType {
Miles = 1,
Kilometers,
Feet,
Meter
}
public static class DistanceCalculator {
private const double radianCalculator = Math.PI / 180;
As noted in various Service Broker sources, it is often advantageous to minimize the overhead of creating dialogs to send messages on. This blog shows how to create a shared pool of dialogs to be able to reuse dialogs instead of creating new ones. The dialog pool is a variation of Remus Rusanu's reusing and recycling conversations as shown in his blog. One of the main differences is that the dialog pool is keyed only on services and contract, not SPID. This allows the same SPID to obtain multiple dialogs from the pool should the need arise. As importantly, different SPIDs can reuse the same dialog sequentially instead of creating two of them. Measurements show equivalent performance using the dialog pool compared to the SPID-based reuse scheme.
The following code shows how to get, free and delete dialogs from a dialog pool table. Initially empty, a new dialog is created in the pool when a request for an existing free dialog cannot be met. Thus the pool will grow during bursts of high demand.
The dialog poo
Item Answer
AmbiguousItem.PrivatePension A private pension is a plan that people may pay into from their earnings, which then will pay back to them when they retire. This is an alternative to the State Pension.
AmbiguousItem.ChildSupport Child support is sometimes known as child maintenance. This is a regular payment made by a parent for the financial benefit of a child following the end of a significant relationship.
AmbiguousItem.Rent If you are living in a property you don’t own, you usually pay a regular payment to the owner of that property. This is your rent. {nl} If you own a property and you are renting it out, this applies to the payment you receive from any tenants living in your property.
Housing.Mortgage A mortgage is a type of loan that a bank or building society lends to you to help you buy a property. It is secured against your home, which means that you may lose your home if you can’t keep up with the repayments.
Housing.SecuredLoan A secured loan is a loan, other than you
AAA
About
Access
ACRE
ACT
Acts
Adapt
Adjust
Affinity
[MemoryDiagnoser]
public class JsonSerializeBenchmark {
private const string json = "{\"Name\":\"insert name here\",\"Addresses\":[{\"Line1\":\"Address line 1\",\"Line2\":\"Address line 2\"},{\"Line1\":\"Address line 1\",\"Line2\":\"Address line 2\"}]}";
[Benchmark]
public string Deserialize() => DeserializeJson();
[Benchmark]
public string Parse() => ParseJson();
@stuartd
stuartd / vonage_test.json
Last active January 28, 2022 12:21
Gist description
[
{
"action": "stream",
"streamUrl": [
"https://telephonebanking.azurewebsites.net/calllogs/Stuart_22_01_28_12_15_07_96/call_audio.wav"
]
}
]