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
(function (angular) { | |
angular._module = angular.module; | |
angular.module = function () { | |
var module = angular._module.apply(angular, arguments); | |
enableLazyLoading.$inject = ['$controllerProvider', '$provide', '$compileProvider']; | |
function enableLazyLoading($controllerProvider, $provide, $compileProvider) { |
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
function TasksService() { | |
var tasks = []; | |
function add(task) { | |
task.completed = false; | |
tasks.push(task); | |
} | |
function clearCompleted() { |
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
interface IAnimal { | |
name: string; | |
sayName(): void; | |
} | |
class Animal implements IAnimal { | |
private _name: string = '[Animal]'; | |
get name(): string { | |
return this._name; |
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
@inject WebApplication1.Services.FormattingUtility Format | |
@model WebApplication1.Post | |
<div class='blog-post' data-post-id="@Model.Id"> | |
<h2 class='title'><a href="@Url.RouteUrl("Post", new { id = Model.Id })">@Model.Title</a></h2> | |
<p class='metadata'> | |
<span>@Format.AsDisplayDate(Model.PostedDate)</span> | |
by <a class="author" href='#'>@Model.Author</a> | |
</p> | |
<section class="body"> |
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) { |
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
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
$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
/// <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
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', '"' }; |