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
$today = Get-Date | |
$todayFormatted = $today.Year.ToString() + "-" + $today.Month.ToString("D2") + "-" + $today.Day.ToString("D2") | |
$Market = "en-AU" | |
$Resolution = "1920x1200" | |
$ImageFileName = "wallpaper-" + $todayFormatted + ".jpg" | |
$DownloadDirectory = "$env:USERPROFILE\Pictures\Bing Wallpaper" | |
$BingImageFullPath = "$($DownloadDirectory)\$($ImageFileName)" | |
if ((Test-Path $DownloadDirectory) -ne $True) { |
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
class Program | |
{ | |
private static string Name = "myContainer"; | |
private static string Key = | |
"R5+BFCGHDJSghjkngfdjklggjfdkj+gvhdfkgfdjkgfdhjgHJGKFDGF=="; | |
static void Main(string[] args) | |
{ | |
var storageCredentials = new StorageCredentials(Name, Key); | |
var cloudStorageAccount = new CloudStorageAccount(storageCredentials, false); |
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
open KesselRun.SeleniumCore | |
open KesselRun.SeleniumCore.Enums | |
open KesselRun.SeleniumCore.Infrastructure | |
open KesselRun.SeleniumCore.TestDrivers | |
open KesselRun.SeleniumCore.Infrastructure.Factories | |
[<EntryPoint>] | |
let main argv = | |
let mutable driverOptions = new DriverOptions() |
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 ExceptionAssert | |
{ | |
public static void Throws<T>(Action code, string exceptionMessage = null, string message = null, params object[] args) where T : Exception | |
{ | |
try | |
{ | |
code.Invoke(); | |
Assert.Fail("No exception was thrown by the code under test."); | |
} |
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
internal class DatabaseSetup | |
{ | |
internal static string connStr = ConfigurationManager.ConnectionStrings["NameOfConnString"].ConnectionString; | |
private const string MasterSchema = "Master"; | |
internal void InstallDatabase(string resourceName) | |
{ | |
InstallDatabase(connStr, GetScript(resourceName)); | |
} |
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
/* | |
* Copyright (c) Brock Allen. All rights reserved. | |
* see license.txt | |
*/ | |
using System; | |
using System.Diagnostics; | |
namespace BrockAllen.MembershipReboot | |
{ |
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.Linq.Expressions; | |
using System.Windows.Input; | |
using CameraDownload.Shared; | |
using GalaSoft.MvvmLight; | |
using GalaSoft.MvvmLight.Command; | |
using NLog; | |
namespace CameraDownload.ViewModels | |
{ |
NewerOlder