Skip to content

Instantly share code, notes, and snippets.

@ardakazanci
ardakazanci / GummyCompose.kt
Created July 12, 2026 10:51
Jetpack Compose Gummy Effect
private data class GummyFlavor(
val name: String,
val color: Color,
)
private val gummyFlavors = listOf(
GummyFlavor("Raspberry", Color(0xFFFF315F)),
GummyFlavor("Tangerine", Color(0xFFFF8A24)),
GummyFlavor("Grape", Color(0xFF9B5CFF)),
)
@jfversluis
jfversluis / xcrun_simctl_cheatsheet.md
Created March 28, 2024 09:55 — forked from patriknyblad/xcrun_simctl_cheatsheet.md
iOS Simulator Terminal Commands `$ xcrun simctl`

Managing iOS Simulators

List all simulators created

$ xcrun simctl list --json

Delete old and unavailable simulators

$ xcrun simctl delete unavailable
@bmc08gt
bmc08gt / Kotlin+Gif.kt
Created February 22, 2024 04:49
SwiftyGif Kotlin Style
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.suspendCancellableCoroutine
import platform.CoreFoundation.CFDataRef
import platform.CoreGraphics.CGImageRef
import platform.Foundation.CFBridgingRelease
import platform.Foundation.CFBridgingRetain
import platform.Foundation.NSData
import platform.Foundation.NSDictionary
@jaredsburrows
jaredsburrows / build.yml
Last active August 2, 2025 15:00
Flutter - Android + iOS + Web
name: build
on:
push:
branches:
- main
pull_request:
types: [ opened, labeled, unlabeled, synchronize ]
env:
@dotysan
dotysan / mta-sts.js
Last active October 9, 2025 00:45
CloudFlare Worker for MTA-STS policy
// const mode = 'testing';
const mode = 'enforce';
// const max_age = 86400; // 1 day
const max_age = 604800; // 1 week
const mx_list = [
'aspmx.l.google.com',
'alt1.aspmx.l.google.com',
'alt2.aspmx.l.google.com',
@hiking93
hiking93 / themes.xml
Last active July 21, 2022 19:47
Edge-to-edge theme configuration with Material 3.
<style name="Theme.App" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">?isLightTheme</item>
<item name="android:windowLightNavigationBar">?isLightTheme</item>
</style>
@hardiksachan
hardiksachan / README.md
Last active February 10, 2025 18:38
Jetpack Compose Expandable Search Bar (Top Bar)

Sample

@chaodonghu
chaodonghu / unfollow-everyone-instagram.js
Last active September 19, 2026 17:10
Google Chrome script that allows user to mass unfollow instagram users on user's profile
// Run GOOGLE CHROME - WORKING AS OF SEPTEMBER 19 2026
// Please @ me in the comments if this stops working, I will try to get it working again within the week/month
//
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Click on "FOLLOWING" on your Instagram profile
// 3. Right click the page, click "INSPECT", open the "Console" tab
// 4. Paste this script and press enter
// 5. Keep the tab focused. Chrome throttles timers in background tabs.
// Open it in its own window and leave it on screen.
@johnnypea
johnnypea / useful-one-liners.sh
Last active June 1, 2026 07:42
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@e-lin
e-lin / glide.java
Created June 26, 2019 08:03
Glide Module - Cloud Storage for Firebase plugin
@GlideModule
class MyAppGlideModule : AppGlideModule() {
override fun registerComponents(context: Context, glide: Glide, registry: Registry) {
// Register FirebaseImageLoader from FirebaseUI to handle StorageReference
registry.append(StorageReference::class.java, InputStream::class.java,
FirebaseImageLoader.Factory())
}
}