Skip to content

Instantly share code, notes, and snippets.

View sionjlewis's full-sized avatar

Siôn J. Lewis sionjlewis

View GitHub Profile
@sionjlewis
sionjlewis / HAW07.app.component.css
Last active January 8, 2017 13:02
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
body {
}
@keyframes flashing-text {
0% {color: red;}
25% {color: darkred;}
50% {color: red;}
100% {color: darkred;}
}
@sionjlewis
sionjlewis / HAW12.Index.cshtml
Last active January 8, 2017 13:03
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section title{
MVC Page
}
<!-- Start Angular Setup -->
<!-- 3. Add the "System.import(...)" statement to the View. -->
@sionjlewis
sionjlewis / HAW10.main.ts
Last active January 8, 2017 13:03
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
//enableProdMode();
platformBrowserDynamic().bootstrapModule(AppModule);
@sionjlewis
sionjlewis / 13.Root.Web.config.parshall.xml
Last active January 8, 2017 13:03
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!-- Added to implement bundling -->
<dependentAssembly>
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
</dependentAssembly>
@sionjlewis
sionjlewis / HAW14.Views.Web.config.parshall.xml
Last active January 8, 2017 13:04
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!-- Added to implement bundling -->
<add namespace="System.Web.Optimization" />
@sionjlewis
sionjlewis / HAW15.BundleConfig.cs
Last active January 8, 2017 13:04
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
using System.Web;
using System.Web.Optimization;
namespace My.iTunes.Client.App_Start
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
@sionjlewis
sionjlewis / HAW16.Global.asax.parshall.cs
Last active January 8, 2017 13:04
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
BundleConfig.RegisterBundles(BundleTable.Bundles);
@sionjlewis
sionjlewis / HAW01.package.jason.parshall.js
Last active January 8, 2017 12:58
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lint": "tslint ./app/**/*.ts -t verbose",
"lite": "lite-server",
"typings": "typings",
"postinstall": "typings install"
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Unit Test Async Method</Title>
<Author>Siôn J. Lewis</Author>
<Description>Adds an async unit test method with comments based on the AAA (Arrange,Act,Assert) pattern</Description>
<HelpUrl>https://msdn.microsoft.com/en-us/library/ms165394.aspx</HelpUrl>
<Shortcut>utestasync</Shortcut>
<SnippetTypes>
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Unit Test Method</Title>
<Author>Siôn J. Lewis</Author>
<Description>Adds a unit test method with comments based on the AAA (Arrange,Act,Assert) pattern</Description>
<HelpUrl>https://msdn.microsoft.com/en-us/library/ms165394.aspx</HelpUrl>
<Shortcut>utest</Shortcut>
<SnippetTypes>