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
package vighnesh153.androidx.exo_player_prototype | |
import androidx.compose.runtime.Composable | |
import com.google.android.exoplayer2.ExoPlayer | |
interface Subtitle { | |
val languageString: String; | |
// val languageCode: 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
data class MovieImage(val url: String, val aspect: String) | |
data class Movie(val name: String, val images: List<MovieImage>, val root: String) | |
data class MovieCollection(val label: String, val items: List<Movie>) | |
val Movie.description: String | |
get() = "When the menace known as the Joker wreaks havoc and chaos on the people of Gotham..." | |
val movieCollections = listOf( | |
MovieCollection( | |
label = "Popular movies and shows", items = listOf( |
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
name: nodejs-publish | |
on: | |
workflow_dispatch: | |
inputs: | |
shouldUpdateVersion: | |
required: true | |
type: choice | |
description: Update the version? | |
default: "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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>301 Moved permanently</title> | |
<link rel="icon" href="https://vighnesh153.dev/favicon.ico" /> | |
</head> | |
<body> | |
<main> | |
<div |
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 android.annotation.SuppressLint | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.os.Build | |
import androidx.annotation.IntDef | |
//Make sure you have the following declared in Manifest when running on Android 11+ | |
//<queries> | |
//<package android:name="com.google.android.tvlauncher" /> | |
//<package android:name="com.google.android.leanbacklauncher" /> |
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
/// <reference path="./.sst/platform/config.d.ts" /> | |
import { | |
constructRoutesForDev, | |
constructRoutesForProd, | |
DEFAULT_AWS_REGION, | |
} from "@vighnesh153/tools/vighnesh153"; | |
const oneYear = "31536000"; | |
const oneDay = "86400"; |
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 crypto from "node:crypto"; | |
import { config } from "@/config.ts"; | |
export interface AuthTokenGeneratorParams { | |
userId: string; | |
} | |
export interface AuthTokenGenerator { | |
generate(params: AuthTokenGeneratorParams): 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
// ==UserScript== | |
// @name Disable "Alt/Option + Click" shortcut | |
// @namespace https://vighnesh153.dev/ | |
// @version 2024-08-08 | |
// @description Disables "Alt/Option + Click" shortcut combo that downloads the link on Chrome | |
// @author vighnesh153 | |
// @match *://*/* | |
// @icon https://raw.githubusercontent.com/vighnesh153/vighnesh153-monorepo/main/nodejs-tools/nodejs-chrome-extensions/disable-alt-click-download/images/logo_48x48.png | |
// @grant none | |
// @downloadURL https://update.greasyfork.org/scripts/503012/Disable%20%22AltOption%20%2B%20Click%22%20shortcut.user.js |
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 { | |
InvocationRequest, | |
InvocationType, | |
InvokeCommand, | |
LambdaClient, | |
LogType, | |
} from "@aws-sdk/client-lambda"; | |
import { HttpHeaderKeys, HttpHeaderValues, not } from "@vighnesh153/tools"; | |
import { |
OlderNewer