This file contains code snippets to be used while following the Angular 2 with Webpack Project Setup video tutorial.
You can find the full project in the angular2-course-webpack-starter repository.
<!DOCTYPE html>
This file contains code snippets to be used while following the Angular 2 with Webpack Project Setup video tutorial.
You can find the full project in the angular2-course-webpack-starter repository.
<!DOCTYPE html>
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code | |
#requires -Version 5.0 | |
param( | |
# Your Live ID for MSDN login | |
[Parameter(Mandatory)] | |
[PSCredential] | |
[System.Management.Automation.CredentialAttribute()] | |
$Credential, | |
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file) |
function Resolve-MsBuild { | |
$msb2017 = Resolve-Path "${env:ProgramFiles(x86)}\Microsoft Visual Studio\*\*\MSBuild\*\bin\msbuild.exe" -ErrorAction SilentlyContinue | |
if($msb2017) { | |
Write-Host "Found MSBuild 2017 (or later)." | |
Write-Host $msb2017 | |
return $msb2017 | |
} | |
$msBuild2015 = "${env:ProgramFiles(x86)}\MSBuild\14.0\bin\msbuild.exe" |
<# | |
.SYNOPSIS | |
Gets the CDP information from a computer. | |
.DESCRIPTION | |
Attempts to get the CDP information from a computer. It automatically downloads tcpdump.exe if it's not already on a computer. | |
.PARAMETER DeviceNumber | |
Alias: dn |
def exec(Map map = [:], command){ | |
def debug = map.debug ?: false | |
if (debug) echo "[DEBUG] powershell method called with parameter: \n $command" | |
def returnFileName = new Date().format("yyyyMMddHHmmssSSS") | |
if (debug) echo "[DEBUG] The return file name will is $returnFileName" | |
def pwCommand = "powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command \"$command\" > $returnFileName" |
import java.util.zip.* | |
String zipFileName = "file.zip" | |
String inputDir = "logs" | |
def outputDir = "zip" | |
//Zip files | |
ZipOutputStream zipFile = new ZipOutputStream(new FileOutputStream(zipFileName)) | |
new File(inputDir).eachFile() { file -> |
body { | |
background: #f9f9f9; | |
font-family: 'Open Sans', sans-serif; | |
text-align: center; | |
} | |
#container { | |
position: relative; | |
z-index: 2; | |
padding-top: 100px; |
var locations = [ | |
['Bondi Beach', '850 Bay st 04 Toronto, Ont'], | |
['Coogee Beach', '932 Bay Street, Toronto, ON M5S 1B1'], | |
['Cronulla Beach', '61 Town Centre Court, Toronto, ON M1P'], | |
['Manly Beach', '832 Bay Street, Toronto, ON M5S 1B1'], | |
['Maroubra Beach', '606 New Toronto Street, Toronto, ON M8V 2E8'] | |
]; | |
var map = new google.maps.Map(document.getElementById('map'), { | |
zoom: 10, |
<Project DefaultTargets="CopyOutputs;DeployService" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |
<!-- These settings control what the service's name, description etc appear in services.msc task panel. --> | |
<PropertyGroup Label="ServiceMetaData"> | |
<ServiceName>ShinyNewService</ServiceName> | |
<ServiceDisplayName>Shiny New Service</ServiceDisplayName> | |
<ServiceDescription>A shiny new service, that changes the world for the greater good.</ServiceDescription> | |
</PropertyGroup> | |
<Choose> |
ko.utils.arrayForEach | |
ko.utils.arrayFirst | |
ko.utils.arrayFilter | |
ko.utils.arrayGetDistinctValues | |
ko.utils.arrayIndexOf | |
ko.utils.arrayMap | |
ko.utils.arrayPushAll | |
ko.utils.arrayRemoveItem | |
ko.utils.extend | |
ko.utils.fieldsIncludedWithJsonPost |