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.Collections.ObjectModel; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Management.Automation; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
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
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
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.Reflection; | |
using System.Linq.Expressions; | |
using System.Diagnostics; | |
namespace WonderfulPanda.Gists | |
{ |
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 | |
setlocal EnableExtensions | |
set tfuser=glombard | |
set tflogin=/login:DOMAIN\%tfuser%,password | |
set tfworkspace=TFSWorkspace | |
set tfdir=C:\temp\MyWorkspace | |
set tfsource=$/PROJ/Source | |
set tfurl=http://127.0.0.1:8080/tfs/TEAM/ |
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.Web; | |
using System.Collections.Specialized; | |
using System.Text; | |
// ASP.NET [C#] REDIRECT WITH POST DATA | |
public static class WebExtensions | |
{ |
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
In the ViewModel or Controller, create a new TotalWebGrid and return it to the view, just like with the normal WebGrid. | |
public TotalWebGrid Grid | |
{ | |
get | |
{ | |
return new TotalWebGrid( | |
source: stagingBillLines, | |
rowsPerPage: 10, | |
ajaxUpdateContainerId: "BillLines"); |
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
static void Main(string[] args) | |
{ | |
using (SvnClient client = new SvnClient()) | |
{ | |
SvnInfoEventArgs serverInfo; | |
SvnInfoEventArgs clientInfo; | |
SvnUriTarget repos = new SvnUriTarget("http://svn.test.com/demo"); | |
SvnPathTarget local = new SvnPathTarget(@"d:\Work\Code\demo"); | |
client.GetInfo(repos, out serverInfo); |