This file contains hidden or 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
function Show-Notification { | |
[cmdletbinding()] | |
Param ( | |
[string] | |
$ServiceName, | |
[string] | |
$ToastTitle, | |
[string] | |
[parameter(ValueFromPipeline)] | |
$ToastText |
This file contains hidden or 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
{ | |
"workbench.colorCustomizations": { | |
"[poimandres]": { | |
"editor.background": "#181a1e", | |
"sideBar.background": "#181a1e", | |
"sideBar.border": "#ffffff15", | |
"statusBar.background": "#181a1e", | |
"statusBarItem.remoteBackground": "#181a1e", | |
"quickInput.background": "#1b1e28", | |
"statusBarItem.remoteForeground": "#676b80", |
This file contains hidden or 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
function Show-Notification { | |
[cmdletbinding()] | |
Param ( | |
[string] | |
$ToastTitle, | |
[string] | |
[parameter(ValueFromPipeline)] | |
$ToastText | |
) | |
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null |
This file contains hidden or 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 hidden or 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 hidden or 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 <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.10" | |
fastapi = "^0.73.0" | |
aiofiles = "^0.8.0" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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; |