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
## Check parameters | |
#if($paramemail && $paramemail.length()>0) | |
#set($email=$paramemail) | |
#else | |
#if($param0 && $param0.length()>0) | |
#set($email=$param0) | |
#else | |
#set($email="first_last@domain.com") | |
#end | |
#end |
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
@ECHO off | |
REM | |
REM http://msdn.microsoft.com/en-us/library/k5b5tt23(v=vs.80).aspx | |
REM http://stackoverflow.com/questions/659647/how-to-get-folder-path-from-file-path-with-cmd | |
REM | |
SET SnkFilePath=%1 | |
SET FileExt=%~x1 | |
REM ECHO %FileExt% |
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 is a directory/file filter template for WinMerge | |
name: CSharp Custom Filter | |
desc: Filter out bin dir and project files | |
## Select if filter is inclusive or exclusive | |
## Inclusive (loose) filter lets through all items not matching rules | |
## Exclusive filter lets through only items that match to rule | |
## include or exclude | |
def: include |
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 void CanExecuteNonQueryWithCommandTextWithDefinedTypeAndTransaction() | |
{ | |
// Arrange | |
int countBefore = Convert.ToInt32(db.ExecuteScalar(countCommand)); | |
using (DbConnection connection = db.CreateConnection()) | |
{ | |
connection.Open(); | |
using (DbTransaction trans = connection.BeginTransaction()) | |
{ |
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 TestHelpers | |
{ | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, StringComparison.Ordinal, DiffStyle.Full, Console.Out, string.Empty); | |
} | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, string message) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, StringComparison.Ordinal, DiffStyle.Full, Console.Out, message); |
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
[WebMethod(true)] | |
public string GetMessages(string psUserId) | |
{ | |
List<JxMessage> messages = new List<JxMessage>(); | |
// .... do some logic like get the message list | |
// Send it back as JSON | |
return CxJSONHelper.Serialize(messages); | |
} |
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.ObjectModel; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Drawing; | |
using System.IO; | |
using System.Drawing.Imaging; | |
// | |
using Ideastrike; |
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
On Error Resume Next | |
For Each objItem in colItems | |
' Create an instance of COMAdmin Catalog | |
set cat = CreateObject( "COMAdmin.COMAdminCatalog" ) | |
' Reference the Applications Collection | |
Set apps = cat.GetCollection("Applications") | |
' Retrieve the data | |
apps.Populate | |
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
REM | |
REM ** USE AT YOUR OWN RISK ** | |
REM | |
REM Uses move.directory.cmd command to deep copy a folder from C:\ to D:\ | |
REM delete the folder once copied and create a sysmlink. | |
REM Simply pass in the folder to move. | |
REM | |
REM Visual Studio uses "\ProgramData\Package Cache" to store installed | |
REM packages. These packages are required for VS to uninstall packages |
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
REM | |
REM ** USE AT YOUR OWN RISK ** | |
REM | |
REM robocopy command line options | |
REM https://technet.microsoft.com/en-us/library/Cc733145.aspx | |
REM | |
REM How to move C:\ProgramData Cache to save gigs of space | |
REM http://superuser.com/questions/455853/can-i-delete-the-the-folder-c-programdata-package-cache | |
REM | |
REM Windows 8 specific space savings review link below |