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.Data.SqlClient; | |
using System.Linq; | |
using System.Collections; | |
using System.Data; | |
namespace SqlParameterHelper | |
{ | |
/// <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
{ | |
"meta": { | |
"theme": "stackoverflow" | |
}, | |
"basics": { | |
"name": "STEVEN VAN DER MERWE", | |
"label": "Technical Lead", | |
"picture": "", | |
"email": "stevenvdmerwe@gmail.com", | |
"phone": "072 620 4435", |
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
#given the below params, takes a completed NUnit(/Selenium) test and parses the results to an HTML file for viewing. | |
# - Run after NUnit tests have completed | |
# - Recommend taking a screenshot in [TearDown] method as a base64, then adding it to the bottom of your comments or logging output as @IMAGE: | |
# - make sure to prefix your baes64 with "data:image/png;base64, | |
# - The @IMAGE: will then be parsed and added as a clickable <img> tag in your test results. | |
param( | |
[string]$testresultsdirectory | |
[string]$htmldestinationdirectory | |
[string]$filename |
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
input { | |
file { | |
path => /tmp/application.log | |
codec => multiline { | |
pattern => "^(%{TIMESTAMP_ISO8601})" | |
negate => true | |
what => "previous" | |
} | |
} | |
} |
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
// **************************************************************************** | |
// The `org.kordamp.gradle.jacoco` plugin takes care of mane aspects shown here | |
// http://kordamp.org/kordamp-gradle-plugins/#_org_kordamp_gradle_jacoco | |
// | |
// The code shown here is obsolete. Use it at your own risk | |
// **************************************************************************** | |
allprojects { | |
apply plugin: 'java' | |
apply plugin: 'jacoco' |
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 class AzureScaleUtil | |
{ | |
public static void ScaleAzureWebApp(string appId, string appSecret, string tenantId, string subscriptionId, string resourceGroupName, string appServicePlanName, | |
string tier) | |
{ | |
Trace.WriteLine("Beginning Azure Web App Scale Event"); | |
var pricingTier = GetPricingTier(tier); | |
var authority = $"https://login.windows.net/{tenantId}"; | |
var resource = "https://management.azure.com/"; |
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
private static void MovieSearch2() | |
{ | |
string[] movies = new string[] { "Dumb and Dumber", "Final Destination", "Rocky", "Speed", "The Notebook" }; | |
int recursivePosition = RecursiveBinarySearch("rocky", movies, 0, movies.Length - 1); | |
Console.WriteLine(recursivePosition); | |
} | |
private static int RecursiveBinarySearch(string searchString, string[] items, int low, int high) | |
{ | |
if (low > high) return -1; // Base Case |
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.Threading.Tasks; | |
namespace DistinctComarer | |
{ | |
class Program | |
{ |
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
import java.sql.*; | |
public class connectURL { | |
public static void main(String[] args) { | |
// Create a variable for the connection string. | |
String connectionUrl = "jdbc:sqlserver://localhost:1433;" + | |
"databaseName=testDb;user=testUser;password=testPass"; |
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
saber-desktop | |
description: Desktop Computer | |
product: To be filled by O.E.M. (To be filled by O.E.M.) | |
vendor: To be filled by O.E.M. | |
version: To be filled by O.E.M. | |
serial: To be filled by O.E.M. | |
width: 64 bits | |
capabilities: smbios-2.7 dmi-2.7 vsyscall32 | |
configuration: chassis=desktop family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=C68EA121-1E3B-A051-C499-300ED517A814 | |
*-core |