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 { DfnsApiClient } from '@dfns/sdk' | |
| import { WebAuthn } from '@dfns/sdk-webauthn' | |
| import { CreateUserCredentialRequest } from '@dfns/sdk/codegen/Auth' | |
| import { CreateUserCredentialFido2Input, CredentialKind } from '@dfns/sdk/codegen/datamodel/Auth' | |
| import { fromBase64Url, toBase64Url } from '@dfns/sdk/utils' | |
| import dotenv from 'dotenv' | |
| const main = async () => { | |
| dotenv.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
| import scalaz.stream._ | |
| object Main extends App { | |
| val (qInt, srcInt) = async.queue[Int] | |
| val (qString, srcString) = async.queue[String] | |
| val repsInt = 5 | |
| val repsString = 5 |
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
| object ExtensibleTradeExecutionProcessor extends TradeExecutionProcessor { | |
| def process(requestId: String, | |
| executionPrice: BigDecimal, | |
| requestedTradeRepository: RequestedTradeRepository, | |
| priceMutators: Set[(RequestedTrade, BigDecimal) => BigDecimal]): Option[ExecutedTrade] = | |
| for { | |
| requestedTrade <- requestedTradeRepository.findById(requestId) | |
| reportedPrice <- priceMutators.foldLeft(executionPrice)((price, mutator) => mutator(requestedTrade, price)).some | |
| } yield |
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
| // kernel.cu : Defines the entry point for the console application. | |
| // | |
| #include "kernel.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <cuda.h> | |
| #include <cutil.h> | |
| #include <cuda_runtime.h> |