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": "./node_modules/@biomejs/biome/configuration_schema.json", | |
"files": { | |
"ignore": [ | |
"node_modules/**" | |
] | |
}, | |
"organizeImports": { | |
"enabled": true | |
}, |
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 { useState, useEffect } from "react"; | |
class YTPlayer {} | |
export enum YTPlayerState { | |
UNSTARTED = -1, | |
ENDED = 0, | |
PLAYING = 1, | |
PAUSED = 2, | |
BUFFERING = 3, | |
CUED = 5, |
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
[tool.poetry] | |
name = "personal-website" | |
version = "0.1.0" | |
description = "backend for personal website" | |
authors = ["Tushar Singh <tusharvickey1999@gmail.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.10" | |
fastapi = "^0.73.0" | |
aiofiles = "^0.8.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
Using virtualenv: /home/tushar/.cache/pypoetry/virtualenvs/personal-website-43YhZ939-py3.10 | |
PyPI: 36 packages found for motor * | |
Using version ^3.0.0 for motor | |
Updating dependencies | |
Resolving dependencies... | |
1: fact: personal-website is 0.1.0 | |
1: derived: personal-website | |
1: fact: personal-website depends on fastapi (^0.73.0) | |
1: fact: personal-website depends on aiofiles (^0.8.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
type PartialRecur<T> = T extends {} ? { [K in keyof T]?: PartialRecur<T[K]> } : T |
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 TypeOfLiteral<T> = T extends string | |
? string | |
: T extends number | |
? number | |
: T extends boolean | |
? boolean | |
: T extends bigint | |
? bigint | |
: T extends Symbol | |
? Symbol |
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
# credit: https://github.com/edwindijas | |
$remoteport = bash.exe -c "ip a s eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; |