slidenumber: true autoscale: true
This file contains 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
protocol Middleware<Input, Output, NextInput, NextOutput> { | |
associatedtype Input | |
associatedtype Output | |
associatedtype NextInput | |
associatedtype NextOutput | |
} | |
protocol Routes<Input, Output> { | |
associatedtype Input | |
associatedtype Output |
This file contains 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 { Auth } from "@firebase/auth"; | |
import * as firebaseui from "firebaseui"; | |
import { ReactElement, useEffect, useRef, useState } from "react"; | |
import { Random } from "../../components/Random"; | |
import { Box, BoxProps } from "@chakra-ui/react"; | |
export type FirebaseAuthViewProps = { | |
auth: Auth; | |
config: firebaseui.auth.Config; | |
} & BoxProps; |
This file contains 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
extension YearMonthDay: PostgresDataConvertible { | |
public static var postgresDataType: PostgresDataType { | |
.date | |
} | |
public init?(postgresData: PostgresData) { | |
guard let date = postgresData.date else { | |
return nil | |
} | |
self.init(date: date, calendar: .gregorian, timeZone: .gmt) |
This file contains 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 NIO | |
extension EventLoop { | |
func chain<V0>( | |
_ v0: @escaping () throws -> EventLoopFuture<V0> | |
) -> EventLoopFuture<V0> { | |
self.tryFlatSubmit { try v0() } | |
} | |
func chain<V0, V1>( |
This file contains 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
class BracketQueryEncoder { | |
private result: [string, string][] = []; | |
encode(json: any): [string, string][] { | |
this.result = []; | |
this.encodeStep([], json); | |
return this.result; | |
} | |
encodeStep(path: string[], json: any) { |
import Foundation
enum E: Codable {
case a(Int???)
}
let encoder = JSONEncoder()
encoder.outputFormatting = .prettyPrinted
let value: [E] = [
NewerOlder