Skip to content

Instantly share code, notes, and snippets.

View vighnesh153's full-sized avatar
Pika-Pi

Vighnesh Raut vighnesh153

Pika-Pi
View GitHub Profile
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;
}
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(
name: nodejs-publish
on:
workflow_dispatch:
inputs:
shouldUpdateVersion:
required: true
type: choice
description: Update the version?
default: "false"
<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
@vighnesh153
vighnesh153 / TvDeviceTypes.kt
Created October 31, 2024 09:45 — forked from seventhmoon/TvDeviceTypes.kt
TvDeviceTypes
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" />
/// <reference path="./.sst/platform/config.d.ts" />
import {
constructRoutesForDev,
constructRoutesForProd,
DEFAULT_AWS_REGION,
} from "@vighnesh153/tools/vighnesh153";
const oneYear = "31536000";
const oneDay = "86400";
@vighnesh153
vighnesh153 / auth_token_generator.ts
Last active November 27, 2024 00:33
Google Login
import crypto from "node:crypto";
import { config } from "@/config.ts";
export interface AuthTokenGeneratorParams {
userId: string;
}
export interface AuthTokenGenerator {
generate(params: AuthTokenGeneratorParams): string;
}
// ==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
import {
InvocationRequest,
InvocationType,
InvokeCommand,
LambdaClient,
LogType,
} from "@aws-sdk/client-lambda";
import { HttpHeaderKeys, HttpHeaderValues, not } from "@vighnesh153/tools";
import {