This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math' show min; | |
| import 'package:flutter/material.dart'; | |
| class UniqueId extends StatefulWidget { | |
| const UniqueId({Key key, this.onSubmit}) : super(key: key); | |
| final ValueChanged<String> onSubmit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ConfettiJobCreator @Inject constructor( | |
| private val jobs: @JvmSuppressWildcards Map<String, Provider<Job>> | |
| ) : JobCreator { | |
| override fun create(tag: String): Job? = jobs[tag]?.get() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.File | |
| // Get the passed in file, i.e. "-f some/path" or use the default file name | |
| val file = if (args.contains("-f")) args[1 + args.indexOf("-f")] | |
| else "commit_messages.log" | |
| File("${file}_clean").printWriter().use { out -> | |
| File(file).forEachLine { msg -> | |
| if (msg.startsWith("Merge pull request").not()) { | |
| out.println(msg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ChipsView<T : Parcelable>(ctx: Context, attr: AttributeSet) : ConstraintLayout(ctx, attr) { | |
| ... | |
| private fun addSubviews() { | |
| val flow = Flow(context).apply { | |
| id = generateViewId() | |
| setWrapMode(Flow.WRAP_CHAIN) | |
| setHorizontalStyle(Flow.CHAIN_PACKED) | |
| setHorizontalAlign(Flow.HORIZONTAL_ALIGN_START) | |
| setHorizontalBias(0f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <androidx.constraintlayout.widget.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:padding="16dp"> | |
| <ImageView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ExperimentalAnimationApi | |
| @RunWith(AndroidJUnit4::class) | |
| class NonOrganizerTest { | |
| @get:Rule | |
| val composeTestRule = createAndroidComposeRule<MainActivity>() | |
| @Before | |
| fun goToNonOrganizerFragment() { | |
| composeTestRule.activityRule.scenario.onActivity { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml Member+ Subscription | |
| !include <C4/C4_Container> | |
| Person(member, "Member") | |
| System_Boundary(c1, "Member+ System") { | |
| Container(api, "API", "Java 17, GraphQL", "Allows members to create and manage their subscriptions") | |
| } | |
| ContainerDb(db, "Database", "MySQL", "Holds plan, order and member information") | |
| Rel(member, api, "Uses", "HTTPS") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import kotlin.contracts.ExperimentalContracts | |
| import kotlin.contracts.InvocationKind | |
| import kotlin.contracts.contract | |
| @Target(AnnotationTarget.CLASS, AnnotationTarget.TYPE) | |
| @DslMarker | |
| annotation class PizzaMarker | |
| class Pizza( | |
| val name: String, |
OlderNewer