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 { Redis } from "@upstash/redis" | |
const r = Redis.fromEnv() | |
r.use((req, next) => { | |
console.log(req) | |
return next(req) | |
}) |
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
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 |
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
export const factorModels = [ | |
{ | |
name: "3factor", | |
factors: [ | |
{ | |
key: "XXX", | |
description: "maybe just spell it out", | |
}, | |
{ | |
key: "XXX", |
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
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 [0;36m--> [0;90mDownload the codacy reporter codacy-coverage-reporter-linux... (latest)[0m |
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
[ | |
{ | |
"country": "GER", | |
"weekday": "Fri", | |
"venue": "Rock im Park", | |
"city": "Nürnberg", | |
"date": "Jun 5" | |
}, | |
{ | |
"country": "AUS", |
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 * 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. |
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 { 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 |
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
# 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 | |
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
{ | |
"BD": "BGD", | |
"BE": "BEL", | |
"BF": "BFA", | |
"BG": "BGR", | |
"BA": "BIH", | |
"BB": "BRB", | |
"WF": "WLF", | |
"BL": "BLM", |