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 fse = require('fs-extra'); | |
| const path = require('path'); | |
| const _ = require('lodash'); | |
| const shelljs = require('shelljs'); | |
| async function getFiles(dir) { | |
| let results = []; | |
| const files = await fse.readdir(dir); | |
| for(const file of files) { |
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 ps = require('child_process'); | |
| function curl(url) { | |
| const output = ps.execSync(`curl -s ${url}`).toString('utf8').trim(); | |
| return output; | |
| } | |
| function getJson(url) { | |
| const output = curl(url); | |
| const json = JSON.parse(output); |
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 Project="..\Common.props" /> |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir> | |
| <Configuration Condition="$(Configuration) == ''">Debug</Configuration> | |
| <OutputPath>$(SolutionDir)\build\bin\$(Configuration)\</OutputPath> | |
| <OutDir>$(OutputPath)</OutDir> | |
| <IntermediateOutputPath>$(SolutionDir)\build\obj\$(Configuration)\$(MSBuildProjectName)\</IntermediateOutputPath> | |
| <UseCommonOutputDirectory>false</UseCommonOutputDirectory> | |
| <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
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
| public static class CombGuid | |
| { | |
| public static readonly DateTime BaseDate = new DateTime(1900, 1, 1); | |
| public static Guid New | |
| { | |
| get | |
| { | |
| var guidBytes = Guid.NewGuid().ToByteArray(); | |
| var now = DateTime.UtcNow; |
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
| Windows Registry Editor Version 5.00 | |
| ; copied from http://thisdavej.com/right-click-on-windows-folder-and-open-with-visual-studio-code/ | |
| ; Open files | |
| [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] | |
| @="Edit with VS Code" | |
| "Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0" | |
| [HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] | |
| @="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\"" | |
| ; This will make it appear when you right click ON a folder |
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
| function fuzzyMatch(searchSet, query) { | |
| var tokens = query.toLowerCase().split(''), | |
| matches = []; | |
| searchSet.forEach(function(string) { | |
| var tokenIndex = 0, | |
| stringIndex = 0, | |
| matchWithHighlights = '', | |
| matchedPositions = []; |
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
| public class CustomRouteDescProvider : IRouteDescriptionProvider | |
| { | |
| public string GetDescription(INancyModule module, string path) | |
| { | |
| return string.Empty; | |
| } | |
| } | |
| // override internal config prop on bootstrapper, and provide the custom type, gg | |
| public class Boottrapper : Nancy.DefaultNancyBootstrapper |
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
| <Style TargetType="DataGrid"> | |
| <Setter Property="Background" Value="White" /> | |
| <!-- Make the border and grid lines a little less imposing --> | |
| <Setter Property="BorderBrush" Value="#DDDDDD" /> | |
| <Setter Property="HorizontalGridLinesBrush" Value="#DDDDDD" /> | |
| <Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" /> | |
| <Setter Property="RowStyle"> |