By default, Visual Studio 2017 and most prior versions open up a web browser session every time you start a web api or mvc application. This can be annoying if you are trying to debug a web service API. The following steps add "Browser" that's just a powershell api call to initialize the web service.
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 DocumentAppUtility = (function (dau, da) { | |
dau.Tables = (function(dautables, da) { | |
function findTableByHeaders(tables, headersMatch) { | |
for (var i=0; i<tables.length; i++) { | |
var table = tables[i], | |
headerRow = table.getRow(0), | |
numCells = headerRow.getNumCells(), | |
columnLookup = {}, | |
headerNames = []; |
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 CaseInsensitiveLookup() { | |
this.obj = {}; | |
this.keys = {}; | |
this.getKey = function(key) { | |
if (key) { | |
var lKey = key.toLowerCase(), | |
lastKey = this.keys[lKey]; | |
return this.keys[lKey] = (lastKey || key); |
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 DocumentAppUtility = (function (dau, da) { | |
dau.Tables = (function(dautables, da) { | |
function replaceContents(table, data, deleteExtra, startRow) { | |
var numRows = table.getNumRows(), | |
startRow = (startRow || 0), | |
rowNum = null, | |
row = null, | |
cell = null; | |
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
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory = $true)] | |
[string]$buildNumberString, | |
[Parameter(Mandatory = $false)] | |
[string]$informationalVersionString | |
) | |
$ErrorActionPreference = 'Stop'; |
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
; This function is a lot like WinActivate, but allows you to pass a path to run if the window is not found | |
; It also uses WinActivateBottom if the matching window is already active, allowing you to toggle through windows | |
; Be careful with the winmatch, the case sensitivity includes ahk_class and ahk_exe because we are using RegEx match mode | |
; Tested with AHK Version 1.1.26.00 | |
WinToggleOrRun(winmatch, pathOrCommand, excludeTitleRegex:=0) | |
{ | |
; Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. | |
SetTitleMatchMode, RegEx | |
IfWinExist, %winmatch%, , %excludeTitleRegex% |
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
internal class ExtendedDataRecord : IDataRecord | |
{ | |
public ExtendedDataRecord(IDataReader reader) | |
{ | |
_reader = reader; | |
} | |
public int IndexOf(string name) | |
{ | |
if (_fieldNames == null) | |
{ |
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
if ((14.28*9 != 128.52) || (66.66*5 != 333.3) || (21.17*6 != 127.02)) { | |
document.write("<b>Rounding Errors Detected:</b><BR><BR>");} | |
else {document.write("<b>No Rounding Errors Detected:</b><BR><BR>"); } | |
document.write("14.28 x 9 should be <b>128.52</b>;<br><small>your browser's answer = </small><b>" + (14.28*9)+"</b><br><br>"); | |
document.write("66.66 x 5 should be <b>333.3</b>;<br><small>your browser's answer = </small><b>" + (66.66 * 5)+"</b><br><br>"); | |
document.write("21.17 x 6 should be <b>127.02</b>;<br><small>your browser's answer = </small><b>" + (21.17*6)+"</b><br><br>"); |
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
//<PackageReference Include="DNS" Version="2.1.0" /> | |
namespace DNSServer | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
DNS.Server.DnsServer server = new DNS.Server.DnsServer("8.8.8.8"); | |
server.Requested += Server_Requested; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace InterfaceCaller | |
{ | |
class Program |
OlderNewer