This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| .config(function ($routeProvider) { | |
| $routeProvider | |
| .when('/view', { | |
| templateUrl: 'pages/view.html', | |
| }) | |
| .when('/edit', { | |
| templateUrl: 'pages/edit.html', | |
| }) | |
| .when('/details/:todoId', { | |
| templateUrl: 'pages/details.html', |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <!-- Get Package Version from TFS BuildNumber if available, otherwise default to today's date --> | |
| <BuildVersion Condition=" '$(BuildVersion)' == '' And '$(TF_BUILD_BUILDNUMBER)' != ''">$(TF_BUILD_BUILDNUMBER.Substring($([MSBuild]::Add($(TF_BUILD_BUILDDEFINITIONNAME.Length), 1))))</BuildVersion> | |
| <BuildVersion Condition=" '$(BuildVersion)' == ''">$([System.DateTime]::Now.ToString(`yyMM.ddHH`))</BuildVersion> | |
| <MajorVersion Condition=" '$(MajorVersion)' == ''">1</MajorVersion> | |
| <PreReleaseVersion Condition=" '$(PreReleaseVersion)' == ''"></PreReleaseVersion> | |
| <PackageVersion Condition=" '$(PackageVersion)' == ''">$(MajorVersion).$(BuildVersion)</PackageVersion> |
This file contains hidden or 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 createSignature(instance, property, args) { | |
| var className = instance.constructor.name, | |
| argsString = args.map(JSON.stringify).join(', '); | |
| return `${className}.${property}(${argsString})`; | |
| } | |
| export function LogMethodDecorator(): MethodDecorator { | |
| return function(target, property: string, descriptor: TypedPropertyDescriptor<Function>) { |
This file contains hidden or 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
| const MaxHealth = 20, | |
| DangerousHealth = 7, | |
| Forward = 'forward', | |
| Backward = 'backward', | |
| Left = 'left', | |
| Right = 'right', | |
| Directions = [Backward, Forward, Left, Right]; | |
| class Player { |
This file contains hidden or 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
| #!/bin/bash | |
| gitRepo=$1 | |
| repoName=$(echo $1 | sed '$s/.*\/\([^/]*$\)/\1/') | |
| dest="$(dirname $(pwd))/$repoName-sync" | |
| branch="ExerciseFiles" | |
| if [ -d "$dest" ]; then | |
| rm -rf $dest | |
| fi |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <key name="Software"> | |
| <key name="ConEmu"> | |
| <key name=".Vanilla" modified="2018-04-18 23:21:27" build="161206"> | |
| <value name="ColorTable00" type="dword" data="00222827"/> | |
| <value name="ColorTable01" type="dword" data="009e5401"/> | |
| <value name="ColorTable02" type="dword" data="0004aa74"/> | |
| <value name="ColorTable03" type="dword" data="00a6831a"/> | |
| <value name="ColorTable04" type="dword" data="003403a7"/> | |
| <value name="ColorTable05" type="dword" data="009c5689"/> |