Skip to content

Instantly share code, notes, and snippets.

View laggedHero's full-sized avatar

Tiago Cunha laggedHero

  • Berlin, Germany
View GitHub Profile
@laggedHero
laggedHero / PinInputCursorModifier.kt
Created January 25, 2021 13:23
Some crude "pin view" using compose.
import androidx.compose.animation.core.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.draw.drawWithContent
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.AmbientAnimationClock
import androidx.compose.ui.text.TextLayoutResult

Keybase proof

I hereby claim:

  • I am laggedhero on github.
  • I am laggedhero (https://keybase.io/laggedhero) on keybase.
  • I have a public key whose fingerprint is 4615 66CF 6D53 ACA3 AF53 2085 F718 FA6D 175E 6432

To claim this, I am signing this object:

@laggedHero
laggedHero / 0_reuse_code.js
Created February 11, 2016 12:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// Without a View Holder
@Override
publicView getView(int itempos, View convertView, ViewGroup parent) {
// Check if the convertview is null, if it is null it probably means that this
// is the first time the view has been displayed
if (convertView == null) {