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
/** | |
* Advanced Window Snap | |
* Snaps the Active Window to one of nine different window positions. | |
* | |
* @author Andrew Moore <[email protected]>, Dacio Romero <[email protected]> | |
* @version 1.01 | |
*/ | |
/** | |
* SnapActiveWindow resizes and moves (snaps) the active window to a given position. |
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
class InMemoryStorage implements Storage { | |
private data = new Map<string, string>() | |
clear (): void { | |
this.data.clear() | |
} | |
getItem (key: string): string | null { | |
return this.data.get(String(key)) ?? null | |
} |
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", |
OlderNewer