Skip to content

Instantly share code, notes, and snippets.

View vaimalaviya1233's full-sized avatar
πŸ‘¨β€πŸ’»
Backing up data...

Vaibhav Malaviya vaimalaviya1233

πŸ‘¨β€πŸ’»
Backing up data...
View GitHub Profile
@vaimalaviya1233
vaimalaviya1233 / 0.README.md
Created July 14, 2026 05:21 — forked from TrianguloY/0.README.md
Lightning Launcher script collection

These are all the scripts that I still keep on my phone for Lightning launcher (the best Android launcher ever).

If you have never heard or used this launcher, these will be useless.

If you have, and you remember me, these may look fun to check and see what crazy shenanigans I never published on the wiki.

In any case I decided to post them here for preservation. I had very little experience, I apologize for the 'unusual' style of programming.

They are unedited, shown here without any modification, they may or may not work wihout minimal tweaks.

@vaimalaviya1233
vaimalaviya1233 / index.html
Created March 25, 2026 14:54
Pattern Over Pixels - Effect
<!-- Import maps polyfill -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>
<!-- Specify module imports for Three.js and lil-gui -->
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js",
"lil-gui": "https://unpkg.com/lil-gui@0.19.1/dist/lil-gui.esm.min.js"
}
@vaimalaviya1233
vaimalaviya1233 / CoreArchitecture.kt
Created February 11, 2026 06:04 — forked from trinadhthatakula/CoreArchitecture.kt
⚑ Trinadh's Core Android Architecture (Kotlin + Koin)
/**
* πŸš€ Core Architecture: Safe API Calling with Koin & Coroutines
* Stack: Kotlin | Koin | Flow | Result Pattern
* Author: Trinadh Thatakula
*/
// 1. type-safe Result wrapper
sealed interface DataResult<out T> {
data class Success<T>(val data: T) : DataResult<T>
@vaimalaviya1233
vaimalaviya1233 / AdMob-in-Jetpack-Compose.md
Created February 11, 2026 06:03 — forked from trinadhthatakula/AdMob-in-Jetpack-Compose.md
A collection of reusable Jetpack Compose functions for implementing various Google AdMob ad formats in modern Android apps using Kotlin.

πŸ’° ADMOB COMPOSE INTEGRATION

  • Strategies: Banner, Interstitial, Native
  • Lifecycle: Handles onPause/onResume automatically
  • Interop: Uses AndroidView with factory lambdas to prevent leaks

Implementing AdMob Ads in Jetpack Compose

A guide to integrating Google AdMob ads (Banner, Adaptive Banner, Collapsible Banner, Interstitial, and Native Ads) into an Android application built with Jetpack Compose.

This guide provides reusable @Composable functions to display different types of ads and follows modern Android development practices, which as a mobile developer who prefers state-based programming with MVVM, you'll find quite familiar.

# this the first option. if it didn't work. go to option 2
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural
adb shell cmd overlay enable com.android.internal.systemui.navbar.threebutton
# install any a launcher you like before option 2
@vaimalaviya1233
vaimalaviya1233 / swag.py
Created August 29, 2025 05:58 — forked from Endermanch/swag.py
Swag and unswag your IP address
def swag(ip: str) -> int:
parts = ip.strip().split('.')
if len(parts) != 4:
raise ValueError("Invalid IPv4 address: must have 4 octets")
total = 0
for i, p in enumerate(parts):
@vaimalaviya1233
vaimalaviya1233 / export-ble-infos.py
Created August 12, 2025 00:28 — forked from Mygod/export-ble-infos.py
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-- Aseprite script for permuting the palette
-- permute_palette_colours.lua
-- by increpare - public domain
-- This script randomly permutes the color palette in the active indexed sprite.
-- Ensure there is an active sprite
local sprite = app.activeSprite
if not sprite then
app.alert("There is no active sprite.")
return