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
| if (!Array.prototype.find) { | |
| Array.prototype.find = function (predicate) { | |
| if (this === null) { | |
| throw new TypeError('Array.prototype.find called on null or undefined'); | |
| } | |
| if (typeof predicate !== 'function') { | |
| throw new TypeError('predicate must be a function'); | |
| } | |
| var list = Object(this); | |
| var length = list.length >>> 0; |
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 override async Task OnOpened() { | |
| var t = new System.Timers.Timer(); | |
| // do your onOpen Stuff... | |
| t.Interval = 1000 * 15; | |
| t.Elapsed += (sender, args) => { | |
| this.Invoke(new { | |
| ts = DateTime.Now.Second | |
| }, "ping"); | |
| }; | |
| t.Start(); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script src="js/XSockets.latest.js"></script> | |
| <script src="js/XSockets.WebRTC.latest.js"></script> |
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 AudioTrackSpeechLog = (function () { | |
| "use strict"; | |
| var ctor = function (track, completed, interim, lang) { | |
| var self = this; | |
| this.recognizing = false; | |
| this.finalTranscript = ""; | |
| if (('webkitSpeechRecognition' in window)) { | |
| this.recognition = new webkitSpeechRecognition(); | |
| this.recognition.continuous = true; | |
| this.recognition.interimResults = true; |
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
| verticles = [ | |
| new Noc.Point3D(-1, -1, -1), // 0 | |
| new Noc.Point3D(1, -1, -1), // 1 | |
| new Noc.Point3D(1, 1, -1), // 2 | |
| new Noc.Point3D(-1, 1, -1), // 3 | |
| new Noc.Point3D(1, -1, 1, 0), // 5 | |
| new Noc.Point3D(1, 1, 1), // 6 | |
| new Noc.Point3D(-1, 1, 1), // 7 | |
| ]; | |
| var faces = [ |
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 myParams = { | |
| foo: "bar", | |
| categoryId :1001 | |
| }; | |
| xsocketsControllerProvider.open("ws://" + location.host, myParams); | |
| ... |
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
| return { | |
| restrict: 'E', | |
| scope: { | |
| options: '=options', // arr med data? | |
| // [{label: '' , value: 0 },... ] | |
| select: '&onSelect', | |
| trigger: '=trigger', | |
| labelField: '=labelField', // label |
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
| <div class="input-group-btn"> | |
| <ul class="dropdown-menu"> | |
| <li ng-repeat="option in options"> | |
| <a ng-click="select({item:option})" | |
| ng-class="{'current': $index === currentIndex }"> | |
| {{option.Name}} | |
| </a> | |
| </li> | |
| </ul> |
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
| <input type="text" ng-keyup="find($event)" id="auto" class="form-control"/> | |
| <sym-suggestions options="results" | |
| on-select="selectedItem(item)" trigger="auto"> | |
| </sym-suggestions> |
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
| <ul class="sym-suggestions"> | |
| <li ng-repeat="option in options"> | |
| <span ng-click="select({item:option})" > | |
| {{option.Name}} | |
| </span> | |
| </li> | |
| </ul> | |