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
<script type="text/javascript" src="//player.wowza.com/player/latest/wowzaplayer.min.js"></script> | |
<div id="playerElement"style="padding:0 0 56.25% 0"></div> | |
<script type="text/javascript"> | |
var streamConfig = { | |
"license":"PLAY2-6VKVk-ZmzTk-UD7YP-BmNjc-4E3XN", | |
"sources":[ | |
{ | |
"sourceURL":"wss://edge.cdn.wowza.com/live/_definst_/0P0p2dVQ4K0JucG9zUjZTaUVSdFp5833/stream.ws" | |
}, | |
{ |
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 void Show(MvxViewModelRequest request) | |
{ | |
if (request.ViewModelType == typeof(SettingsViewModel)) | |
{ | |
var page = CreatePage(request); | |
var viewModel = LoadViewModel(request); | |
page.DataContext = viewModel; | |
var vc = page.CreateViewController(); | |
var attr = new MvxTabPresentationAttribute |
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
c:\FTS\Apps\blueye\Resources\P2-functional-tests>python test.py test_upload_swupdate | |
INFO test_upload_swupdate: starting | |
Traceback (most recent call last): | |
File "test.py", line 7, in <module> | |
exit(testcases.tests()) | |
File "C:\Users\tczkkepa\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 722, in __call__ | |
return self.main(*args, **kwargs) | |
File "C:\Users\tczkkepa\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 697, in main | |
rv = self.invoke(ctx) | |
File "C:\Users\tczkkepa\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 1066, in invoke |
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 ObservableZeroconf : IObservableZeroconf | |
{ | |
public ObservableZeroconf() | |
{ | |
} | |
public IObservable<Service> Search(string serviceType) | |
{ | |
var browser = new NSNetServiceBrowser(); | |
browser.Schedule(NSRunLoop.Current, NSRunLoopMode.Default.ToString()); |
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
static void Main(string[] args) | |
{ | |
var browser = new ServiceBrowser(); | |
var observableFound = | |
Observable.FromEventPattern<ServiceFoundEventArgs>( | |
h => browser.ServiceFound += h, | |
h => browser.ServiceFound -= h) | |
.Select(e => e.EventArgs.Service); |
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.Reactive; | |
using System.Reactive.Linq; | |
using System.Threading.Tasks; | |
namespace ReactiveLearning | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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 difference(a, b) { | |
var diff = b - a; | |
var absDiff = Math.abs(diff); | |
if (absDiff <= 180) | |
{ | |
return absDiff == 180 ? absDiff : diff; | |
} | |
else if (b > a) | |
{ | |
return absDiff - 360; |
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
*------------------------------- | |
* | |
* Draw entire 10 x 3 screen from scratch | |
* | |
*------------------------------- | |
SURE | |
lda #1 | |
sta genCLS ;clear screen | |
jsr setback ;draw on bg plane |
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
// This sample will guide you through elements of the F# language. | |
// | |
// ******************************************************************************************************* | |
// To execute the code in F# Interactive, highlight a section of code and press Alt-Enter or right-click | |
// and select "Execute in Interactive". You can open the F# Interactive Window from the "View" menu. | |
// ******************************************************************************************************* | |
// | |
// For more about F#, see: | |
// http://fsharp.org | |
// |
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
open System.IO | |
let prices = File.ReadLines(__SOURCE_DIRECTORY__ + "/2/input.txt") | |
|> Seq.map System.Double.Parse | |
|> Seq.toList | |
let rec findMax price prices profit = | |
match prices with | |
| [] -> profit | |
| hd :: tail -> |
NewerOlder