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
schema { | |
query: Query | |
mutation: Mutation | |
} | |
type Query { | |
session(id: ID!): Session | |
} | |
type Mutation { |
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
#load @"../.paket/load/net452/main.group.fsx" | |
open System | |
open Akka.Actor | |
open Akkling | |
let config = | |
""" | |
akka { | |
actor { |
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 | |
let cartesian xs ys = | |
xs |> List.collect (fun x -> ys |> List.map (fun y -> x, y)) | |
type Coords = { X:int; Y:int } with | |
static member FromTuple (x, y) = | |
{ X = x; Y = y } | |
type State = { Alive:Set<Coords>; XMax:int; YMax:int } with |
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 | |
let toBin n = | |
let rec toBinImpl n = seq { | |
let div, rem = Math.DivRem (n, 2) | |
yield rem | |
if div <> 0 then yield! toBinImpl div } | |
toBinImpl n |> Seq.rev |> Seq.toArray |
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 InteractionSource | |
{ | |
public static readonly InteractionSource Global = new InteractionSource(); | |
private readonly IList<Func<NewInteraction, IObservable<Unit>>> handlers; | |
public InteractionSource() | |
{ | |
this.handlers = new List<Func<NewInteraction, IObservable<Unit>>>(); | |
} |
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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5D00A63E9FA65E41BBB193DFC82B71E0/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5D00A63E9FA65E41BBB193DFC82B71E0/Shortcut/@EntryValue">rx_cmd</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5D00A63E9FA65E41BBB193DFC82B71E0/Description/@EntryValue">Reactive command</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5D00A63E9FA65E41BBB193DFC82B71E0/Text/@EntryValue">public ReactiveCommand<$type$> $name$ { get; private set; }</s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5D00A63E9FA65E41BBB193DFC82B7 |
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
package com.foo.bar.baz | |
import rx.functions.Action0; | |
import rx.functions.Func0; | |
import timber.log.Timber; | |
import java.io.Closeable; | |
public class TimeLogger implements Closeable | |
{ |