Skip to content

Instantly share code, notes, and snippets.

View JavierSegoviaCordoba's full-sized avatar
👋

Javier Segovia Córdoba JavierSegoviaCordoba

👋
View GitHub Profile
{"v":"5.9.4","fr":25,"ip":0,"op":53,"w":200,"h":200,"nm":"RULE_NO_CARD_200x200","ddd":0,"assets":[{"id":"comp_0","nm":"RULE_CARD_1000x1000 V3","fr":30,"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Mastercard 3","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.4,"y":1},"o":{"x":0.6,"y":0},"t":0,"s":[588.458,663.131,0],"to":[51.25,-11,0],"ti":[-51.25,11,0]},{"i":{"x":0.4,"y":0.4},"o":{"x":0.6,"y":0.6},"t":13.333,"s":[895.958,597.131,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.4,"y":1},"o":{"x":0.6,"y":0},"t":27.5,"s":[895.958,597.131,0],"to":[-51.25,11,0],"ti":[51.25,-11,0]},{"t":35.8333333333333,"s":[588.458,663.131,0]}],"ix":2,"l":2},"a":{"a":0,"k":[814,650,0],"ix":1,"l":2},"s":{"a":0,"k":[94.716,94.716,100],"ix":6,"l":2}},"ao":0,"w":1000,"h":1000,"ip":0,"op":53.3333333333333,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Reglette amovible 2","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x"
@JavierSegoviaCordoba
JavierSegoviaCordoba / gradle-properties-avoid-computer-stucks.md
Last active July 7, 2025 13:49
Gradle properties to avoid computer gets stuck
# shell
--max-workers=2 --priority-low
# gradle.properties
org.gradle.workers.max=2
org.gradle.priority=low
@JavierSegoviaCordoba
JavierSegoviaCordoba / future-agp-version-flag.vmoptions
Last active December 15, 2025 08:50
Future Android Gradle Plugin version flag for IntelliJ IDEA, and Android Studio
# Allow using a future Android Gradle Plugin (AGP)
# version in IntelliJ IDEA, and Android Studio
# Setup on IntelliJ IDEA, or Android Studio (Restart required):
# Toolbar > Help > Edit Custom VM Options...
-Dgradle.ide.support.future.agp.versions=true
  1. Check updates
winget update
  1. Upgrade all packages
winget upgrade --all
# Plugins
- .ignore
- JavierSC theme
- Material Theme UI
- Atom Material Icons
- Code Screenshots
- detekt
- Foldable ProjectView
- Git Branch cleaner
- GitToolBox
@JavierSegoviaCordoba
JavierSegoviaCordoba / update-gradle-wrapper.md
Last active November 13, 2024 12:08
Update Gradle wrapper
  1. Run the Gradle Wrapper updater
./gradlew wrapper --gradle-version=$version
  1. Run the next commands to fix file permission:
git update-index --chmod=+x gradlew
chmod +x gradlew
@JavierSegoviaCordoba
JavierSegoviaCordoba / LF.md
Last active May 13, 2025 00:02
Configure git and IntelliJ to force the usage of LF
  1. Add to .editorconfig in the root folder

    [*]
    end_of_line = lf
    insert_final_newline = true
    
  2. Add to .gitattributes in the root folder

  • text eol=lf
/**
* Usage:
* private val adapter by listAdapter(UserItemBinding::inflate, User::userId) { user: User ->
* textViewName.text = user.username
* imageView.load(user.avatarUrl)
* }
* @param [binding] is the item binding generated via ViewBinding or DataBinding
* @param [property] is the item property used by DiffUtil, if it is not indicated or it is null, DiffUtil will search
* for a property called id
* @param [onBind] is the lambda which include the item object