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 { createClient } from '@supabase/supabase-js' | |
const supabaseUrl = process.env.SUPABASE_URL as string | |
const supabaseKey = process.env.SUPABASE_KEY as string | |
const client = createClient(supabaseUrl, supabaseKey) | |
export { client } |
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> = { | |
debug: true, | |
face: { emotion: { enabled: false } }, | |
body: { enabled: false }, | |
hand: { enabled: false }, | |
gesture: { enabled: false }, |
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 }, |
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
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 { 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
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
# 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
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
declare global { | |
var globalString: string | |
interface GlobalInterface { | |
value: unknown | |
} | |
type GlobalType = { | |
value: unknown | |
} |