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
interface CustomNodeJSGlobal extends NodeJS.Global { | |
myGlobalVariable: unknown | |
} | |
export { CustomNodeJSGlobal } |
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 { CustomNodeJSGlobal } from "/direction/to/global.variables/file" | |
declare const global: CustomNodeJSGlobal | |
global.myGlobalVariable = 'Hi mom, look at me, I am global!' | |
console.log({ myGlobalVariable: global.myGlobalVariable }) |
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
declare global { | |
var globalString: string | |
interface GlobalInterface { | |
value: unknown | |
} | |
type GlobalType = { | |
value: unknown | |
} |
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
interface DtoUser { | |
id: string | |
lastName: string | |
name: 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
# docker | |
DB_NAME = postgresql | |
DB_USER = anthony | |
DB_PASSWORD = 14db7d47-f442-4a90-b633-2a537c8b5c13 |
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 { MqttClient } from 'mqtt' | |
interface Route { | |
sub: (client: MqttClient) => void | |
PUB_TOPIC: string | |
SUB_TOPIC: 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
import { MqttClient } from 'mqtt' | |
declare global { | |
interface Route { | |
sub: (client: MqttClient) => void | |
PUB_TOPIC: string | |
SUB_TOPIC: 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
interface Route { | |
sub: (client: import('mqtt').MqttClient) => void | |
PUB_TOPIC: string | |
SUB_TOPIC: 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
import { readFileSync } from 'fs' | |
import tfjs from '@tensorflow/tfjs-node' | |
import faceApi from '@vladmandic/face-api' | |
const modelUrl = 'node_modules/@vladmandic/face-api/model' | |
const optionsSSDMobileNet = new faceApi.SsdMobilenetv1Options({ | |
minConfidence: 0.5, | |
maxResults: 1 | |
}) |
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 tfjs from '@tensorflow/tfjs-node' | |
import { Human, Config } from '@vladmandic/human' | |
import { existsSync, readFileSync } from 'fs' | |
const humanConfig: Partial<Config> = { | |
modelBasePath: 'node_modules/@vladmandic/human/models', | |
debug: true, | |
face: { emotion: { enabled: false } }, | |
body: { enabled: false }, | |
hand: { enabled: false }, |
OlderNewer