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
router.get('/test', (req, res) => { | |
const appids = req.query.appids.split(',') | |
const urls = appids.map(id =>`https://store.steampowered.com/app/${id}`); | |
igbd.games({ | |
fields: ['name', 'cover'], | |
filters: { | |
'websites.url-in': urls | |
} | |
}) |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "User", | |
"description": "A user in the database", | |
"type": "object", | |
"properties": { | |
"email": { | |
"description": "Their email" | |
}, | |
"username": { |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "User", | |
"description": "A user in the database", | |
"type": "object", | |
"properties": { | |
"email": { | |
"description": "Their email", | |
"type": "string", | |
"format": "email" |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Post", | |
"description": "A Reddit post and its comments", | |
"type": "object", | |
"properties": { | |
"title": { | |
"type": "string", | |
"minLength": 8, | |
"maxLength": 32 |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Post", | |
"description": "A Reddit post and its comments", | |
"type": "object", | |
"properties": { | |
"title": { | |
"type": "string", | |
"minLength": 8, | |
"maxLength": 32 |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Post", | |
"description": "A Reddit post and its comments", | |
"type": "object", | |
"definitions": { | |
"votes": { | |
"type": "object", | |
"properties": { | |
"up": { |
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
type KeysMatchingValue<T, V> = { [P in keyof T]: T[P] extends V ? P : never }[keyof T] | |
type PickByValue<T, V> = Pick<T, KeysMatchingValue<T, V>> | |
type OmitByValue<T, V> = Omit<T, KeysMatchingValue<T, V>> |
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
{ | |
// Possible Errors | |
"for-direction": "off", | |
"getter-return": "off", | |
"no-async-promise-executor": "off", | |
"no-await-in-loop": "off", | |
"no-compare-neg-zero": "off", | |
"no-cond-assign": "off", | |
"no-console": "off", | |
"no-constant-condition": "off", |
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
const fs = require('fs') | |
const lockfile = require('@yarnpkg/lockfile') | |
const package = require('./package.json') | |
const lock = lockfile.parse(fs.readFileSync('yarn.lock', 'utf-8')).object | |
const allDeps = new Set() | |
const parseDep = ([name, version]) => { | |
allDeps.add(`${name}@${version}`) |
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
version: "3" | |
services: | |
vpn: | |
image: "dperson/openvpn-client" | |
network_mode: "bridge" | |
cap_add: | |
- "NET_ADMIN" | |
devices: | |
- "/dev/net/tun" | |
environment: |
OlderNewer