This is just stuff that I have put down that I find I use a lot of the time for my own reference.
$ git pull| !simple paged list for jetpack compose |
| package com.mercury.app.updater | |
| import android.app.Activity | |
| import androidx.activity.compose.rememberLauncherForActivityResult | |
| import androidx.activity.result.ActivityResult | |
| import androidx.activity.result.ActivityResultLauncher | |
| import androidx.activity.result.IntentSenderRequest | |
| import androidx.activity.result.contract.ActivityResultContracts | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.Stable |
| @Composable | |
| fun ParallaxScreen(modifier: Modifier = Modifier) { | |
| val context = LocalContext.current | |
| val scope = rememberCoroutineScope() | |
| var data by remember { mutableStateOf<SensorData?>(null) } | |
| DisposableEffect(Unit) { | |
| val dataManager = SensorDataManager(context) | |
| dataManager.init() |
| package com.tonal.trainer.anvilcompilers | |
| import com.google.auto.service.AutoService | |
| import com.squareup.anvil.annotations.ContributesTo | |
| import com.squareup.anvil.compiler.api.AnvilContext | |
| import com.squareup.anvil.compiler.api.CodeGenerator | |
| import com.squareup.anvil.compiler.api.GeneratedFile | |
| import com.squareup.anvil.compiler.api.createGeneratedFile | |
| import com.squareup.anvil.compiler.internal.asClassName | |
| import com.squareup.anvil.compiler.internal.buildFile |
| import RickRoll.writer | |
| object RickRoll { var writer: (String) -> Unit = { println(it) } } | |
| val Never = RickAstleyNever // to get different highlighting color | |
| object RickAstleyNever { | |
| infix fun gonna(x: give) = give | |
| infix fun gonna(x: let) = let | |
| infix fun gonna(x: run) = run | |
| infix fun gonna(x: make) = make | |
| infix fun gonna(x: say) = say |
| package com.iamutkarshtiwari.ds.component.drawer | |
| import androidx.annotation.FloatRange | |
| import androidx.compose.foundation.Canvas | |
| import androidx.compose.foundation.gestures.Orientation | |
| import androidx.compose.foundation.gestures.detectTapGestures | |
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.BoxWithConstraints | |
| import androidx.compose.foundation.layout.Column | |
| import androidx.compose.foundation.layout.ColumnScope |
| /* | |
| * Copyright (c) 2018. Uber Technologies | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:bloc/bloc.dart'; | |
| import 'package:flutter_bloc/flutter_bloc.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { |
| // full instructions on using this script are available here: https://gist.github.com/oldwestaction/68b5c3bedf6d8acb84ff5a846cd3d8f8 | |
| // edit these variables depending on how your sheet is set up | |
| // 1 = column A, 2 = column B, and so on | |
| var googleSheetMenuButton = 'Custom scripts'; | |
| var perfumerColumn = 1; | |
| var titleColumn = 2; | |
| var fragranceNotesColumn = 3; |