- Enable Windows Sandbox
- Enable WSL
- Update Linux kernel
- Install Windows Package Manager
- Install Windows Terminal
- Windows Terminal Powerline
- Oh My Posh
- Install Cascadia Powerline Fonts
- Install Microsoft PowerToys
- Install Microsoft Visual Studio Code
This file contains 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
var DayOfWeek = { | |
Sunday: 0, | |
Monday: 1, | |
Tuesday: 2, | |
Wednesday: 3, | |
Thursday: 4, | |
Friday: 5, | |
Saturday: 6 | |
}; | |
This file contains 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
// constructor function | |
function Foo(){ | |
//public | |
this.name = "Bob"; | |
// private | |
var self = this, // <-- assign 'this' within constructor to private variable to allow private methods access to the object members | |
x = 6; |
This file contains 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
param ( | |
[Parameter(Mandatory=$true)][string]$project | |
[Parameter(Mandatory=$true)][string]$context | |
[string]$startupProject | |
) | |
Set-Location $PSScriptRoot | |
if (-Not ($startupProject)) | |
{ |
This file contains 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 Find-GitRepository { | |
<# | |
.SYNOPSIS | |
Find Git repositories | |
.DESCRIPTION | |
Use this command to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed. | |
.PARAMETER Path | |
The top level path to search. |
This file contains 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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<!-- <script src="node_modules/requirejs/require.js"></script> --> | |
<script src="kdds-hub.js"></script> | |
</head> | |
<body> | |
<h1>Hello, <span id="name"></span></h1> | |
</body> | |
</html> |
This file contains 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="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<PackagePath Condition=" '$(PackagePath)'=='' ">website</PackagePath> | |
<EnableAddReplaceToUpdatePacakgePath Condition=" '$(EnableAddReplaceToUpdatePacakgePath)'=='' ">true</EnableAddReplaceToUpdatePacakgePath> | |
<PackageDependsOn> | |
$(PackageDependsOn); | |
AddReplaceRuleForAppPath; | |
</PackageDependsOn> |
This file contains 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
# find all files | |
Get-ChildItem -Recurse -File | % { | |
$sourceDirectory = Split-Path -Path $_.FullName -Parent; | |
$sourceFileName = Split-Path -Path $_.FullName -Leaf; | |
# $sourceDirectory; | |
# $sourceFileName; | |
# replace old path with new path | |
$targetDirectory = $sourceDirectory.Replace("Areas\Application\Views", "Modules\Pages"); |