Skip to content

Instantly share code, notes, and snippets.

View stevenh77's full-sized avatar

Steven Hollidge stevenh77

View GitHub Profile
Failed: Template parse errors:
'router-outlet' is not a known element:
1. If 'router-outlet' is an Angular component, then verify that it is part of this module.
2. If 'router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas'
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/stevenh77/angular-lob-app?branch=master&svg=true)](https://ci.appveyor.com/project/stevenh77/angular-lob-app/branch/master)
environment:
matrix:
- nodejs_version: "6.9"
matrix:
fast_finish: true
install:
- ps: Install-Product node $env:nodejs_version
- npm install
npm install wallaby-webpack angular2-template-loader electron --save-dev
// command prompt
npm install --save lodash
npm install --save @types/lodash
// in your .ts file
import * as _ from 'lodash';
// Place your settings in this file to overwrite the default settings
{
"files.exclude": {
"**/*.js": {"when": "$(basename).ts"},
"**/*.js.map": true
}
}
using System;
using System.Diagnostics;
using Diagnostics.Performance;
namespace Diagnostics.Performance
{
public static class Benchmarker
{
private static void DisplayResults(string benchmarkName,
TimeSpan totalTime,
using System;
using System.IO;
using System.Xml;
using System.Xml.Schema;
using System.Xml.XPath;
namespace XSD_fun
{
class Program
{
SET NOCOUNT ON
-- Get size of SQL Server Page in bytes
DECLARE @pg_size INT, @Instancename varchar(50)
SELECT @pg_size = low from master..spt_values where number = 1 and type = 'E'
-- Extract perfmon counters to a temporary table
IF OBJECT_ID('tempdb..#perfmon_counters') is not null DROP TABLE #perfmon_counters
SELECT * INTO #perfmon_counters FROM sys.dm_os_performance_counters