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
const fs = require('fs'); | |
const cheerio = require('cheerio'); | |
const path = require('path'); | |
const inputFilePath = path.join(__dirname, 'table.html'); | |
const outputFilePath = path.join(__dirname, 'output.csv'); | |
const DateHeader = 'Date'; | |
const RotationDayHeader = 'Rotation Day'; |
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 Connection = require("tedious").Connection; | |
var Request = require("tedious").Request; | |
const server = "sqlproxy"; | |
const port = 10009; | |
const database = "database"; | |
const user = "user"; | |
const password = "ffffffff"; | |
const query = `select app_name()`; |
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
const parser = require("http-message-parser"); | |
const ky = require("ky-universal"); | |
const targetUrl = "https://postman-echo.com"; | |
function executeHttp(strings) { | |
const rawRequest = parser(strings.join("\n")); | |
const { | |
url, |
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"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2018-04-18 23:21:27" build="161206"> | |
<value name="ColorTable00" type="dword" data="00222827"/> | |
<value name="ColorTable01" type="dword" data="009e5401"/> | |
<value name="ColorTable02" type="dword" data="0004aa74"/> | |
<value name="ColorTable03" type="dword" data="00a6831a"/> | |
<value name="ColorTable04" type="dword" data="003403a7"/> | |
<value name="ColorTable05" type="dword" data="009c5689"/> |
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
#!/bin/bash | |
gitRepo=$1 | |
repoName=$(echo $1 | sed '$s/.*\/\([^/]*$\)/\1/') | |
dest="$(dirname $(pwd))/$repoName-sync" | |
branch="ExerciseFiles" | |
if [ -d "$dest" ]; then | |
rm -rf $dest | |
fi |
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
const MaxHealth = 20, | |
DangerousHealth = 7, | |
Forward = 'forward', | |
Backward = 'backward', | |
Left = 'left', | |
Right = 'right', | |
Directions = [Backward, Forward, Left, Right]; | |
class Player { |
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 createSignature(instance, property, args) { | |
var className = instance.constructor.name, | |
argsString = args.map(JSON.stringify).join(', '); | |
return `${className}.${property}(${argsString})`; | |
} | |
export function LogMethodDecorator(): MethodDecorator { | |
return function(target, property: string, descriptor: TypedPropertyDescriptor<Function>) { |
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="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- Get Package Version from TFS BuildNumber if available, otherwise default to today's date --> | |
<BuildVersion Condition=" '$(BuildVersion)' == '' And '$(TF_BUILD_BUILDNUMBER)' != ''">$(TF_BUILD_BUILDNUMBER.Substring($([MSBuild]::Add($(TF_BUILD_BUILDDEFINITIONNAME.Length), 1))))</BuildVersion> | |
<BuildVersion Condition=" '$(BuildVersion)' == ''">$([System.DateTime]::Now.ToString(`yyMM.ddHH`))</BuildVersion> | |
<MajorVersion Condition=" '$(MajorVersion)' == ''">1</MajorVersion> | |
<PreReleaseVersion Condition=" '$(PreReleaseVersion)' == ''"></PreReleaseVersion> | |
<PackageVersion Condition=" '$(PackageVersion)' == ''">$(MajorVersion).$(BuildVersion)</PackageVersion> |
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
.config(function ($routeProvider) { | |
$routeProvider | |
.when('/view', { | |
templateUrl: 'pages/view.html', | |
}) | |
.when('/edit', { | |
templateUrl: 'pages/edit.html', | |
}) | |
.when('/details/:todoId', { | |
templateUrl: 'pages/details.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
(function (angular) { | |
angular._module = angular.module; | |
angular.module = function () { | |
var module = angular._module.apply(angular, arguments); | |
enableLazyLoading.$inject = ['$controllerProvider', '$provide', '$compileProvider']; | |
function enableLazyLoading($controllerProvider, $provide, $compileProvider) { |
NewerOlder