This file contains 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
param ( | |
[string] | |
$sourceConnectionString = $(throw "-sourceConnectionString is required."), | |
[string] | |
$sourceTableName = $(throw "-sourceConnectionString is required."), | |
[string] | |
$targetConnectionString = $(throw "-targetConnectionString is required."), | |
[string] | |
$targetTableName = $(throw "-targetTableName is required.") | |
) |
This file contains 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
// Origin: http://blogs.msdn.com/b/heikkiri/archive/2012/07/17/hex-string-to-corresponding-byte-array.aspx | |
void Main() | |
{ | |
var result = ConvertToByteArray("72 0B FC".Replace(" ", string.Empty)); | |
result.Dump(); | |
BitConverter.ToString(result).Dump(); | |
} |
This file contains 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
public static void QuickSort(IComparable[] elements, int left, int right) | |
{ | |
int i = left, j = right; | |
IComparable pivot = elements[(left + right) / 2]; | |
while (i <= j) | |
{ | |
while (elements[i].CompareTo(pivot) < 0) | |
{ | |
i++; |
This file contains 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
public static void BubbleSort(IComparable[] elements) | |
{ | |
for (int i = 0; i < elements.Length - 1; i++) | |
{ | |
for (int j = 0; j < elements.Length - 1 - i; j++) | |
{ | |
if (elements[j].CompareTo(elements[j + 1]) > 0) | |
{ | |
var temp = elements[j]; | |
elements[j] = elements[j+1]; |
This file contains 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
var process = require('process'); | |
var toMarkdown = require('to-markdown'); | |
var xml2js = require('xml2js'); | |
var fs = require('fs') | |
var path = require('path'); | |
var inputDir = ""; | |
var outputDir = ""; |