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
// For an introduction to the Navigation template, see the following documentation: | |
// http://go.microsoft.com/fwlink/?LinkId=232506 | |
(function () { | |
"use strict"; | |
WinJS.Binding.optimizeBindingReferences = true; | |
var app = WinJS.Application; | |
var activation = Windows.ApplicationModel.Activation; | |
var nav = WinJS.Navigation; |
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 myfunction() { | |
alert('hi'); | |
} |
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"?> | |
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.1"> | |
<CommandSet xml:lang="en-us" Name="examplevcd"> | |
<CommandPrefix>Monkey</CommandPrefix> | |
<Example>Command the monkey!</Example> | |
<Command Name="command"> | |
<Example>dance</Example> |
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 sf = Windows.Storage.StorageFile; | |
var vcm = Windows.Media.SpeechRecognition.VoiceCommandManager; | |
sf.getFileFromApplicationUriAsync(new Windows.Foundation.Uri("ms-appx:///vcd.xml")) | |
.then(function (file) { | |
vcm.installCommandSetsFromStorageFileAsync(file); | |
}); |
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
else if (args.detail.kind === activation.ActivationKind.voiceCommand) { | |
var command = args.detail.result.semanticInterpretation.properties.command[0]; | |
WinJS.xhr({ url: 'http://CommandMonkey.azurewebsites.net/api/command?cmd=' + command }); | |
} |
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
{ | |
"files.exclude": { | |
"app/**/*.js": true, | |
"app/**/*.js.map": true | |
} | |
} |
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
[ | |
{ | |
"metadata": { | |
"galleryApiUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", | |
"id": "214cbfb9-7c06-4467-bad4-357ae83eb587", | |
"publisherId": "4434843a-4ebf-4f44-84f5-4176380c492d", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "Angular2", | |
"publisher": "johnpapa", |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"moduleResolution": "node", | |
"sourceMap": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"removeComments": false, | |
"noImplicitAny": false |
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
export COGNITIVE_SERVICES_KEY=d7889254b9244ec1ba54e8cf154ff359 | |
HostName=cfhub.azure-devices.net;DeviceId=dxpi17;SharedAccessKey=gWAQDI68nZPb3qgoFG+To/E0YQIw+JZBxsnqgKJH2mI= | |
HostName=cfhub.azure-devices.net;DeviceId=dxpi20;SharedAccessKey=S1Ls1kp/LONWfXmMTVoc4b/X1OcXPXZ1ofbZTGy06rQ= | |
HostName=cfhub.azure-devices.net;DeviceId=dxpi12;SharedAccessKey=zM2TXZoeWDyWwwegM2knH6UtqiIZwfjah6vegKQ/9Sk= | |
HostName=cfhub.azure-devices.net;DeviceId=dxpi11;SharedAccessKey=8by1YuKZ5yDpUG5J7esQKXV2RPx2f+MuZaL6WWWkJFs= | |
HostName=cfhub.azure-devices.net;DeviceId=dxpi08;SharedAccessKey=37KdRdNTxG4QOJwUfHx/GaW8or+QCqp5uyOcY4dWtnY= |
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
import { ConsoleAdapter } from 'botbuilder'; | |
new ConsoleAdapter().listen(ctx => { | |
if (ctx.request.type === 'message') | |
ctx.sendActivity(ctx.request.text); | |
}) |
OlderNewer