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
using System; | |
namespace GenerateLatLon.Helpers | |
{ | |
public static class RandomHelper | |
{ | |
public static int NegativePositive(this Random r) | |
{ | |
int iNum; |
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 string[] Split(string line, string qualifier, string delimiter) | |
{ | |
bool qualifierState = false; | |
int startIndex = 0; | |
List values = new List(); | |
//split the line into a character array so we can parse the line and take text qualifiers into consideration | |
char[] items = line.ToCharArray(); |
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
# | |
# This script will increment the build number in an AssemblyInfo.cs file | |
# | |
$assemblyInfoPath = "C:\Data\Temp\AssemblyInfo.cs" | |
$contents = [System.IO.File]::ReadAllText($assemblyInfoPath) | |
$versionString = [RegEx]::Match($contents,"(AssemblyFileVersion\("")(?:\d+\.\d+\.\d+\.\d+)(""\))") | |
Write-Host ("AssemblyFileVersion: " +$versionString) |
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
with col as ( | |
select atc.column_name, atc.data_type, atc.data_length, atc.nullable, atc.table_name from all_tab_cols atc | |
where table_name = '[table name here]' | |
order by column_id) | |
select distinct 'insert into ' || lower(table_name) ||' (' from col | |
union all | |
select case when rownum != 1 then ', ' || lower(column_name) else lower(column_name) end from col | |
union all | |
select ') values (' from dual | |
union all |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
public static class FileHelper | |
{ | |
/// <summary> |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Xml.Serialization; | |
using System.Xml; | |
using System.IO; | |
using System.Runtime.Serialization.Json; | |
using System.Text; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.CodeDom.Compiler; | |
using System.Reflection; | |
using Microsoft.CSharp; | |
public class ScriptEngine |