Skip to content

Instantly share code, notes, and snippets.

View brect's full-sized avatar
🤓

Bruno Lima brect

🤓
View GitHub Profile
@webserveis
webserveis / MainActivity.kt
Last active October 19, 2023 21:36
Implementar click RecyclerView Kotlin AndroidX
val mAdapter = MySimpleAdapter(dummyData())
recycler_view.setHasFixedSize(true)
recycler_view.layoutManager = LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)
recycler_view.adapter = mAdapter
mAdapter.setOnItemClickListener(object : MySimpleAdapter.ClickListener {
override fun onItemClick(v: View, position: Int) {
Log.v(TAG, "onItemClick ${position}")
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 5, 2025 05:27
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@lopspower
lopspower / README.md
Last active November 4, 2025 18:55
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@BeattieM
BeattieM / API Contract Example Spec.md
Last active May 14, 2025 15:27
An example of an API contract between the server and front-end devices

#Users

  • User object
{
  id: integer
  username: string
  email: string
  created_at: datetime(iso 8601)
  updated_at: datetime(iso 8601)
}