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.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml; | |
using Arlo.SDK.Contract; | |
using Arlo.SDK.Entities.Base; | |
using Arlo.SDK.Entities.Product; | |
using Arlo.SDK.Entities.System; |
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.Generic; | |
using System.Threading.Tasks; | |
using System.Web; | |
using EventBot.SupportLibrary.Contract; | |
using Microsoft.ApplicationInsights; | |
using Microsoft.Bot.Builder.Dialogs; | |
using Microsoft.Bot.Builder.Luis.Models; | |
using Microsoft.Bot.Connector; | |
using Xamling.Azure.Portable.Contract; |
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 EventBot.Ignite; | |
using Microsoft.ApplicationInsights; | |
using Microsoft.Bot.Builder.Dialogs; | |
using Microsoft.Bot.Connector; | |
using Microsoft.IdentityModel.Protocols; | |
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Configuration; | |
using System.Diagnostics; |
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.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Arlo.SDK.Contract; | |
using EventBot.SupportLibrary.Contract; | |
using EventBot.SupportLibrary.Entity; | |
using EventBot.SupportLibrary.Utils.JwtHelpers; |
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
{ | |
"luis_schema_version": "2.0.0", | |
"versionId": "0.1", | |
"name": "Ignite Australia 2017 Production", | |
"desc": "", | |
"culture": "en-us", | |
"intents": [ | |
{ | |
"name": "AddToSchedule" | |
}, |
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
var viz = require('viz.js'); | |
var fs = require('fs'); | |
var svg2png = require("svg2png"); | |
var result = viz("digraph { x -> y -> z; }", { format: "svg" }); | |
svg2png(result) | |
.then(buffer => fs.writeFile("dest.png", buffer)) | |
.catch(e => console.error(e)); |
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
var ab = consolodatedBindings.allBindings; | |
var ioNodes = new dotgraph.node("record", "filled", "yellow", | |
consolodatedBindings.allBindings.map((ele) => ele.name) | |
); | |
var funcNodes = new dotgraph.node("doublecircle", "filled", "lightblue", | |
allFunctions.map((ele) => ele.funcName) | |
); |
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
var viz = require('viz.js'); | |
buildGraph(dot){ | |
return viz(dot, { format: "svg" }); | |
} |
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
.onDefault((session, args) => { | |
var intentsSorted = _.sortBy(args.intents, (intent)=>{ | |
return 1-intent.score; | |
}); | |
var top = intentsSorted[0]; | |
var second = intentsSorted[1]; |
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
bot.dialog('/SetUser', | |
(session, args, next) => { | |
session.conversationData.user = args.result.user; | |
session.endDialog(`Okay set user`); | |
} | |
); | |
// bot listening for inbound backchannel events | |
bot.on('event', function (event) { | |
bot.beginDialog(event.address, "*:/SetUser", {result:{user:event.value}}); |