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; | |
using System.Data.SqlClient; | |
using System.Dynamic; | |
public class DynamicSqlDataReader | |
{ | |
private static dynamic ToExpando(IDataRecord record) | |
{ |
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
<Window x:Class="StoryboardDemo.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="MainWindow" Height="350" Width="525"> | |
<Grid> | |
<TextBlock x:Name="CountdownDisplay" FontFamily="Calibri" FontSize="60"/> | |
</Grid> | |
</Window> |
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; | |
public static class Parser | |
{ | |
public static readonly IDictionary<Type, Func<string, object>> Parsers = | |
new Dictionary<Type, Func<string, object>> | |
{ | |
{typeof (char), source => char.Parse(source)}, |
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.Data; | |
using System.Data.Entity; | |
using System.Diagnostics; | |
public class Animal | |
{ | |
public long Id { get; set; } | |
} | |
public class Dog : Animal |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
public abstract class CsvHelper | |
{ | |
protected internal const string DefaultDelimiter = ","; | |
protected internal static readonly char[] SpecialChars = new[] { ',', '\n', '\r', '"' }; |
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
/// <reference path="../../scripts/typings/angularjs/angular.d.ts" /> | |
/// <reference path="../../Scripts/typings/angularjs/angular-scenario.d.ts" /> | |
module InlineEditor { | |
'use strict'; | |
function InlineEditor(): ng.IDirective { | |
function link(scope: ng.IScope, container: ng.IAugmentedJQuery, attrs: ng.IAttributes, ngModel: ng.INgModelController) | |
: void { |
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
$toolsDir = "C:\Tools" | |
$files = @( | |
# Web Essentials 2013 | |
"http://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361/file/105627/34/WebEssentials2013.vsix" | |
) | |
$packages = @( | |
"Chutzpah", | |
"Console2", |
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.IO; | |
using NUnit.Framework; | |
using Website.Automation.Workflows; | |
public abstract class AutomatedTestFixture | |
{ | |
[TestFixtureTearDown] | |
public void TestFixtureTearDown() | |
{ |
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
declare var log: { | |
(value): void; | |
}; | |
interface Food { | |
name: string; | |
ingredients?: string[]; | |
} | |
enum AnimalType { |
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
TodosService.$inject = [ '$http' ]; | |
function TodosService($http) { | |
var baseUrl = "https://jchad-todo.azurewebsites.net/todos"; | |
function getAll() { | |
return _unwrap($http.get(baseUrl)); | |
} | |
function getById(todoId) { |