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
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC' | |
cmd /c "vcvarsall.bat&set" | | |
foreach { | |
if ($_ -match "=") { | |
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" | |
} | |
} | |
popd | |
write-host "`nVisual Studio 2013 Command Prompt variables set." -ForegroundColor Yellow |
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
## Configure a SQL Server for running on a shared machine (set max memory) | |
Function Configure-SqlServer | |
{ | |
<# | |
.Synopsis | |
Configure a SQL Server for use with Panda. | |
.Example | |
Configure-SqlServer .\SQLExpress | |
Configure the local SQL Server Express |
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
protected override University MapFromRow(Row input) | |
{ | |
// Using dynamic so we can hit the TryGetMember on Row to look up | |
// missing properties (here: all of them) in the key-value map. | |
dynamic row = input; | |
return new University() | |
{ | |
UniversityNumber = Int32.Parse(row.UniversityNumber), | |
Name = row.UniversityName, | |
}; |
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
<#@ template debug="false" hostspecific="true" language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ import namespace="System.IO" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.Text" #> | |
<#@ import namespace="System.Collections.Generic" #> | |
<#@ import namespace="System.Diagnostics" #> | |
<#@ assembly name="EnvDTE" #> | |
<#@ import namespace="EnvDTE" #> | |
<#@ output extension=".cs" #> |
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; | |
using NUnit.Framework; | |
namespace TestHelpers | |
{ | |
public class EqualityTesting |
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 NUnit.Framework; | |
namespace DeveloperTest.TestHelpers | |
{ | |
public class IntegrationAttribute : CategoryAttribute | |
{ | |
public IntegrationAttribute() | |
: base("Integration") | |
{ | |
} |
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 NUnit.Framework; | |
namespace LinqExperiments | |
{ | |
[TestFixture] | |
public class LinqExpressionsTest | |
{ | |
private class NumberedText |
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
# Convert Visio (2013) documents to PDF | |
$drawings = Get-ChildItem -Filter "*.vsdx" | |
Write-Host "Converting Visio documents to PDF..." -ForegroundColor Cyan | |
try | |
{ | |
$visio = New-Object -ComObject Visio.Application | |
$visio.Visible = $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
using System; | |
using System.CodeDom.Compiler; | |
using Microsoft.JScript; | |
namespace JavascriptFromDotNet | |
{ | |
class Program | |
{ | |
private const string Source = @" | |
package 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Serialization; | |
using System.Text; | |
namespace ClassLibrary1 | |
{ | |
/// <summary> |