Skip to content

Instantly share code, notes, and snippets.

View CyrilFind's full-sized avatar

Cyril Findeling CyrilFind

View GitHub Profile
@CyrilFind
CyrilFind / main.kt
Last active May 12, 2021 16:06
Compose Navigation + Paging + ViewModel + Flow
const val LIST = "list"
const val OTHER = "other"
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
val navController = rememberNavController()
ComposeSampleTheme {
Scaffold(
[clean local]
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
[clean remote]
git branch -r --merged | egrep -v "(^\*|master|dev)" | sed 's/origin\///' | xargs -n 1 git push --delete origin