Skip to content

Instantly share code, notes, and snippets.

View JavierSegoviaCordoba's full-sized avatar
👋

Javier Segovia Córdoba JavierSegoviaCordoba

👋
View GitHub Profile
  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 February 19, 2023 11:25
Update Gradle wrapper
  1. Run the Gradle Wrapper updater
./gradlew wrapper --gradle-version=$version
  1. Run the next commands to fix file permission:
chmod +x gradlew
@JavierSegoviaCordoba
JavierSegoviaCordoba / LF.md
Last active March 18, 2024 15:37
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