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
> JustTheGame.dll!JustTheGame.LicensePromptViewModel..ctor.AnonymousMethod__18_5(Akavache.LoginInfo _) Line 67 C# | |
System.Reactive.dll!System.Reactive.Linq.ObservableImpl.Do<Akavache.LoginInfo>.Actions._.OnNext(Akavache.LoginInfo value) Line 158 C# | |
System.Reactive.dll!System.Reactive.Linq.ObservableImpl.Select<System.__Canon, System.__Canon>.Selector._.OnNext(System.__Canon value) Line 48 C# | |
System.Reactive.dll!System.Reactive.SafeObserver<JustTheGame.GameStoreHeuristicInfo>.WrappingSafeObserver.OnNext(JustTheGame.GameStoreHeuristicInfo value) Line 31 C# | |
System.Reactive.dll!System.Reactive.Linq.ObservableImpl.Select<ReactiveUI.ReactiveCommand<System.Reactive.Unit, System.__Canon>.ExecutionInfo, System.__Canon>.Selector._.OnNext(ReactiveUI.ReactiveCommand<System.Reactive.Unit, System.__Canon>.ExecutionInfo value) Line 48 C# | |
System.Reactive.dll!System.Reactive.Sink<ReactiveUI.ReactiveCommand<System.Reactive.Unit, JustTheGame.GameStoreHeuristicInfo>.ExecutionInfo>.ForwardOnNext(ReactiveUI.ReactiveComman |
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
import * as pulumi from '@pulumi/pulumi'; | |
import * as docker from '@pulumi/docker'; | |
import * as pg from '@pulumi/postgresql'; | |
const cfg = new pulumi.Config(); | |
const network = new docker.Network('net'); | |
const pgImg = new docker.RemoteImage('postgresql-image', { | |
name: 'postgres:11', | |
keepLocally: 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
import * as pulumi from "@pulumi/pulumi"; | |
import * as docker from "@pulumi/docker"; | |
import * as pg from '@pulumi/postgresql'; | |
const cfg = new pulumi.Config(); | |
const network = new docker.Network("net"); | |
const pgImg = new docker.RemoteImage("postgresql-image", { | |
name: "postgres:11", | |
keepLocally: 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
namespace GlobalHotKey | |
{ | |
public class GlobalKeyboardHookEventArgs : HandledEventArgs | |
{ | |
public GlobalKeyboardHook.KeyboardState KeyboardState { get; private set; } | |
public GlobalKeyboardHook.LowLevelKeyboardInputEvent KeyboardData { get; private set; } | |
public GlobalKeyboardHookEventArgs( | |
GlobalKeyboardHook.LowLevelKeyboardInputEvent keyboardData, | |
GlobalKeyboardHook.KeyboardState keyboardState) |
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 Example() { | |
// Crap, we just made a Firebase query for each render instead of | |
// what we wanted, a query set up on mount, and cleaned up on unmount | |
const query = useQuery(db.collections('lots-of-stuff').limit(10000)); | |
return <ul>query.docs.map(x => (<li>{x}</li>)); | |
} |
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
import { Model } from '@whenjs/when'; | |
import { useState } from 'react'; | |
import { useWhen } from '../src/when-react/use-helpers'; | |
class ViewModel extends Model { | |
public foo: number; | |
constructor() { | |
super(); |
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
import { Model, when } from '@whenjs/when'; | |
import { scan } from 'rxjs/operators'; | |
import { useState } from 'react'; | |
import { useObservable } from '../src/when-react/use-helpers'; | |
class ViewModel extends Model { | |
public foo: number; | |
constructor() { |
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
async function main() { | |
const sock = create('ws://localhost:8123'); | |
sock.connect(); | |
await sock.auth('sekrit code'); | |
const ha = new HomeAssistant(sock); | |
const light = new Light(ha, 'hue_lamp_1'); | |
// light.state will always give you the initial value on subscribe | |
light.state.subscribe(x => console.log(x)); |
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
import { create } from './websocket-ha'; | |
const homeAssistant = create('http://localhost:8123'); | |
homeAssistant.connect(); | |
await homeAssistant.auth("my secret password"); | |
// Make API calls | |
console.log(await homeAssistant.call({type: 'get_config'})); |
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
/** | |
* @license | |
* Copyright 2018 Google LLC. All Rights Reserved. | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |