Skip to content

Instantly share code, notes, and snippets.

View dominsights's full-sized avatar
🎯
Focusing

Dom dominsights

🎯
Focusing
View GitHub Profile
@SahanAmarsha
SahanAmarsha / Footer.tsx
Created March 15, 2022 18:00
Example Footer component.
@ericdouglas
ericdouglas / keyboard.md
Last active April 27, 2024 05:08
Cedilla under C (ç) in 'US international' keyboard layout in Linux

Add English (US, alt. intl.)

It's because the cedilla module isn't loaded by default when the locale is set to en, so you have to change the configuration files for gtk to add them:

  1. Edit configuration files:
sudo vim /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache

sudo vim /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache
@lievendoclo
lievendoclo / presenter.kt
Last active October 27, 2023 18:21
Presenter in Clean Architecture
// shared datastructures
data class ResponseModel(val value: String)
data class JsonResponse(val jsonValue: String)
// example 1
interface FooUseCase {
fun <T> T doSomething(presenter: (ResponseModel -> T))
}