To enable Yarn for Angular CLI run the following command:
ng set --global packageManager=yarn
To revert it back to using npm use this:
ng set --global packageManager=npm
To enable Yarn for Angular CLI run the following command:
ng set --global packageManager=yarn
To revert it back to using npm use this:
ng set --global packageManager=npm
#requires -Version 2 -Modules posh-git | |
function Write-Theme { | |
param( | |
[bool] | |
$lastCommandFailed, | |
[string] | |
$with | |
) |
import { Injectable } from "@angular/core"; | |
import { TestBed, async, inject } from '@angular/core/testing'; | |
import { HttpModule, Http, Response, ResponseOptions, XHRBackend } from '@angular/http'; | |
import { MockBackend } from '@angular/http/testing'; | |
import { Observable } from 'rxjs/Rx'; | |
@Injectable() | |
export class FancyService { | |
protected value = 'real value'; |
namespace Owin.IpFilter | |
{ | |
using System; | |
using System.Net; | |
public static class AppBuilderExtensions | |
{ | |
public static IAppBuilder UseIpFiltering(this IAppBuilder appBuilder, Func<IPAddress, bool> rejectRequest) | |
{ | |
appBuilder.Use(typeof(IpFilterMiddleware), rejectRequest); |
# Chocolatey profile | |
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
if (Test-Path($ChocolateyProfile)) { | |
Import-Module "$ChocolateyProfile" | |
} | |
function PromptX { | |
# Print the working directory: |
EDITOR: "C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst -notabbar -nosession | |
VIEWER: "C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst -notabbar -nosession -ro |
<!--REPLACE <Colors> and <SearchTemplates> --> | |
<Colors> | |
<UseCursorBorder>False</UseCursorBorder> | |
<CursorBorderColor>-2147483635</CursorBorderColor> | |
<UseFrameCursor>True</UseFrameCursor> | |
<Foreground>305780</Foreground> | |
<Background>2238503</Background> | |
<Background2>2238503</Background2> | |
<Cursor>16089859</Cursor> |
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE COLUMN_NAME like '%Brand%' | |
ORDER BY TABLE_NAME, COLUMN_NAME |
// single line comments use a double slash | |
(* multi line comments use pair | |
-end of multi line comment- *) | |
// ======== "Variables" (but not really) ========== | |
// The "let" keyword defines an (immutable) value | |
let myInt = 5 | |
let myFloat = 3.14 | |
let myString = "hello" //note that no types needed |
// CPPXmasTree.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <iostream> | |
#include <ostream> | |
#include <string> | |
#include "XmasTree.h" | |
inline void printHelloWorld(); |