This file contains hidden or 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
import { | |
constructRoutes, | |
constructApplications, | |
constructLayoutEngine, | |
} from "single-spa-layout"; | |
import { registerApplication, start } from "single-spa"; | |
const routes = constructRoutes(document.querySelector("#single-spa-layout"), { | |
loaders: { | |
topNav: "<h1>Loading topnav</h1>", |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "https://github.com/Microsoft/azure-pipelines-vscode/blob/master/local-schema.json", | |
"$comment": "v1.147.0", | |
"title": "Pipeline schema", | |
"description": "A pipeline definition", | |
"oneOf": [{ | |
"$ref": "#/definitions/pipeline" | |
}, { | |
"type": "string", |
This file contains hidden or 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
$TempDir = "C:\temp\windows-build-tools" | |
If(!(test-path $TempDir)) | |
{ | |
New-Item -ItemType Directory -Force -Path $TempDir | |
} | |
$client = new-object System.Net.WebClient; | |
$client.DownloadFile("https://aka.ms/vs/16/release/vs_buildtools.exe","$TempDir\vs_buildtools.exe"); | |
cd "$TempDir"; | |
.\vs_buildtools.exe --passive --wait --norestart --nocache --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --locale en-US --noUpdateInstaller | Out-Null; |
This file contains hidden or 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
array set env {PORT 8080 ROOT public_html DEFAULT index.html ME localhost:8080} | |
foreach t {image:png,gif,jpg=jpeg text:htm=html,txt=plain,css :pl=php=tcl=cgi} { | |
foreach el [lrange [split $t :,] 1 end] { | |
foreach ext [split $el =] {regsub {:.*=} $t=$el / mime(.$ext)} | |
} | |
} | |
set match {(GET|POST) (/[^ ?]*)\??(\S*).*?\n(.*?)\n\n(.*)} | |
proc answer {sock from p2} {fileevent $sock readable [list serve $sock $from]} | |
proc serve {sock from} { | |
fconfigure $sock -blocking 0 |
This file contains hidden or 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
'use strict'; | |
const fs = require('fs'); | |
const packageLockFile = 'package-lock.json'; | |
fs.readFile(packageLockFile, 'utf8', (err, data) => { | |
if (err) { | |
return console.log(err); | |
} |
This file contains hidden or 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
const semver = require('semver'); | |
const chalk = require('chalk'); | |
const packageConfig = require('./package.json'); | |
const exec = function (cmd) { | |
return require('child_process') | |
.execSync(cmd).toString().trim(); | |
}; | |
const versionRequirements = [ | |
{ |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Data; | |
using Moq; | |
namespace Moq.DataExtensions { | |
public static class MockFactoryDataExtensions { | |
public static Mock<IDbCommand> CreateIDbCommand(this MockFactory factory) { | |
var command = factory.Create<IDbCommand>(); |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
.red { | |
background-color: red; | |
} | |
.blue { | |
background-color: blue; | |
} | |
div { |
This file contains hidden or 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
cd /home/ | |
rm -rf DevelopmentSVN | |
git init --bare routefinder | |
echo 'Problem Solved!' |