Skip to content

Instantly share code, notes, and snippets.

import { Redis } from "@upstash/redis"
const r = Redis.fromEnv()
r.use((req, next) => {
console.log(req)
return next(req)
})
@chronark
chronark / 7ab.txt
Last active November 10, 2020 14:27
6a
Die Laufzeit beträgt O(min(a,b))
// R1 = a (smaller)
// R2 = b (bigger)
// R3 = 7 * a * b
// R4 = a * b
// R5 = loop counter starting at min(a,b) down to 0
// R6 = loop counter starting at 7 down to 0
export const factorModels = [
{
name: "3factor",
factors: [
{
key: "XXX",
description: "maybe just spell it out",
},
{
key: "XXX",
2020-07-28T15:29:09.9825035Z ______ __
2020-07-28T15:29:09.9825717Z / ____/___ ____/ /___ ________ __
2020-07-28T15:29:09.9826040Z / / / __ \/ __ / __ `/ ___/ / / /
2020-07-28T15:29:09.9826343Z / /___/ /_/ / /_/ / /_/ / /__/ /_/ /
2020-07-28T15:29:09.9826610Z \____/\____/\__,_/\__,_/\___/\__, /
2020-07-28T15:29:09.9826875Z /____/
2020-07-28T15:29:09.9827094Z
2020-07-28T15:29:09.9827357Z Codacy Coverage Reporter
2020-07-28T15:29:09.9827787Z
2020-07-28T15:29:09.9875226Z --> Download the codacy reporter codacy-coverage-reporter-linux... (latest)
[
{
"country": "GER",
"weekday": "Fri",
"venue": "Rock im Park",
"city": "Nürnberg",
"date": "Jun 5"
},
{
"country": "AUS",
import * as bitcoin from "bitcoinjs-lib"
import { PsbtInput } from "bip174/src/lib/interfaces"
import bip68 from "bip68"
import varuint from "varuint-bitcoin"
import fetch from "node-fetch"
const us = bitcoin.ECPair.fromWIF("92QLMjmpz3V1aT8VDZ7u2dXF1pKvNLfEiWdmccYQDASRsoZvHH6", bitcoin.networks.testnet)
const alice = bitcoin.ECPair.fromWIF("cQBwuzEBYQrbWKFZZFpgitRpdDDxUrT1nzvhDWhxMmFtWdRnrCSm", bitcoin.networks.testnet)
const bob = bitcoin.ECPair.fromWIF("cNaEjitvA19JZxWAFyCFMsm16TvGEmVAW3AkPnVr8E9vgwdZWMGV", bitcoin.networks.testnet)
// This function is used to finalize a CSV transaction using PSBT.
// See first test above.
import { Apis as btsWebsocketApi } from "bitsharesjs-ws"
import { ChainStore, FetchChain, TransactionBuilder } from "bitsharesjs"
import { getSecret } from "./secret"
export interface HTLCConfig {
from: string
to: string
amount: string
asset: string
# Mapbox
[mapbox.com](https://www.mapbox.com/)
## Pricing
- Geocoding:
| Monthly requests | Cost per 1.000 |
|---------------------------|----------------|
| Up to 100,000 | Free |
| 100,001 to 500,000 | $0.75 |
| 500,001 to 1,000,000 | $0.60 |
| 1,000,001 to 5,000,000 | $0.45 |
{
"BD": "BGD",
"BE": "BEL",
"BF": "BFA",
"BG": "BGR",
"BA": "BIH",
"BB": "BRB",
"WF": "WLF",
"BL": "BLM",