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
| bq query --format=json --dry_run=true --use_legacy_sql=false 'SELECT @a IS TRUE AS x, @b + 1 AS y, "foo" = @c AS z, ["tomas", "jansson"] as w, STRUCT("wat" as t, 69 as u) as v, [STRUCT(3, "allo" as g), STRUCT(5 as a, "yolo")] as u, STRUCT(["a"] as h) as t;' |
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 main | |
| import ( | |
| "fmt" | |
| ) | |
| type Result struct { | |
| Error error | |
| Data interface{} | |
| } |
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 | |
| open Proto | |
| open System.Threading.Tasks | |
| type Message = {Text: string} | |
| type Message2 = | |
| | Text of string | |
| module Proto = | |
| let createActor<'T> f = |
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.Diagnostics; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| namespace ParallelTest | |
| { | |
| 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
| type Connection = { | |
| Start: unit -> unit | |
| Stop: unit -> unit | |
| } | |
| type ActiveConnection = { | |
| Stop: unit -> ConnectionWrapper | |
| } | |
| and InActiveConnection = { | |
| Start: unit -> ConnectionWrapper | |
| } |
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.Threading.Tasks; | |
| namespace MinimalDispatcher | |
| { | |
| public interface IHandle<TRequest, TResponse> { | |
| Task<TResponse> Handle(TRequest request); |
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
| [<RequireQualifiedAccess>] | |
| module Secret = | |
| open Pulumi.Kubernetes.Core.V1 | |
| open Pulumi.Kubernetes.Types.Inputs.Core.V1 | |
| let base64Encode (str: string) = | |
| let bytes = System.Text.Encoding.UTF8.GetBytes(str) | |
| System.Convert.ToBase64String(bytes) |
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.IO; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.Extensions.Logging; | |
| namespace catchall.Controllers | |
| { |
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 path = "05-input.data" | |
| let sample = """0,9 -> 5,9 | |
| 8,0 -> 0,8 | |
| 9,4 -> 3,4 | |
| 2,2 -> 2,1 | |
| 7,0 -> 7,4 | |
| 6,4 -> 2,0 | |
| 0,9 -> 2,9 |
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 | |
| type Beacon = { | |
| X: int | |
| Y: int | |
| Z: int | |
| } | |
| type Scanner = { | |
| Id: int | |
| Beacons: Beacon Set |