Skip to content

Instantly share code, notes, and snippets.

View indyfromoz's full-sized avatar
🏠
Working from home

Indrajit Chakrabarty indyfromoz

🏠
Working from home
View GitHub Profile
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.BlurMaskFilter
import android.graphics.Matrix
import android.view.ViewGroup
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCaptureException
import androidx.camera.core.ImageProxy
@vistar941
vistar941 / ViewController.swift
Last active June 2, 2026 15:38
Work around UIButton limitations using only public APIs.
import UIKit
final class MenuControl: UIControl {
private let label: UILabel = {
let label = UILabel()
label.text = "Public API-Only Menu"
label.font = .boldSystemFont(ofSize: 15)
label.textAlignment = .center
label.textColor = .white
/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
@Brayden
Brayden / drive.sh
Created January 27, 2026 15:15
Mounted R2 Drive
#!/usr/bin/env bash
set -euo pipefail
bold() { printf "\033[1m%s\033[0m\n" "$*"; }
info() { printf "• %s\n" "$*"; }
warn() { printf "\033[33m! %s\033[0m\n" "$*"; }
err() { printf "\033[31m✗ %s\033[0m\n" "$*" >&2; }
ok() { printf "\033[32m✓ %s\033[0m\n" "$*"; }
require_macos() {
╭─── Claude Code v2.1.12 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back Jonny! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity
@subhransu
subhransu / .gitconfig
Created September 29, 2025 16:14
Git aliases for faster workflow
[alias]
co = checkout
cob = checkout -b
cm = commit -m
ca = commit --amend
s = status -sb
st = status
aa = add --all
ap = add -p
br = branch
@NinoDLC
NinoDLC / FoldableRow.kt
Created September 23, 2025 11:57
An example for a Row that will "fold" (when there's not enough width) into even splits
package com.example.myapplication
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.material3.VerticalDivider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.IntrinsicMeasurable
import androidx.compose.ui.layout.IntrinsicMeasureScope
import androidx.compose.ui.layout.Layout
@iprashantpanwar
iprashantpanwar / BouncyHeart.kt
Last active October 17, 2025 17:42
Bouncy, pulsating heart animation in Jetpack Compose — inspired by https://dribbble.com/shots/2419184-Heart-Rate-Monitor-Animation
@Composable
fun HeartBeatScreen(
modifier: Modifier = Modifier
) {
Box(
modifier = modifier
.fillMaxSize(),
contentAlignment = Alignment.Center
) {
AnimatedLayeredHearts(modifier)
# Important rules you HAVE TO FOLLOW
- Always add debug logs & comments in the code for easier debug & readability
- Every time you choose to apply a rule(s), explicitly state the rule{s} in the output. You can abbreviate the rule description to a single word or phrase
- Do not make any changes, until you have 95% confidence that you know what to build. Ask me follow up questions until you have that confidence.
# Project structure
- All the files go inside /tip tracker
- The main swift file is tip_trackerApp.swift
# Tech Stack
@riggaroo
riggaroo / KeyframesWithSpline.kt
Created December 17, 2024 11:34
KeyframesWithSpline Example
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.VectorConverter
import androidx.compose.animation.core.animateValue
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.keyframesWithSpline
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints