This file contains 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.reflect.KFunction1 | |
import kotlin.test.assertEquals | |
fun main() { | |
assertSums(::makeSum) | |
assertSums(::makeSum2) | |
assertSums(::makeSum3) | |
} | |
fun assertSums(kFunction1: KFunction1<List<Int>, List<Int>>) { |
This file contains 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
<android.support.design.widget.TextInputLayout | |
android:theme="@style/PickupEditTextHint" | |
> | |
<android.support.design.widget.TextInputEditText /> | |
</android.support.design.widget.TextInputLayout> |
This file contains 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
@ColorListVariableMethod(limitedToValues = {0xFF00b47c, 0xFF3f51b5, 0xFFf44336}) | |
public void setIndicatorColor(Integer indicatorColor) { | |
indicator.setIndicatorColor(indicatorColor); | |
} |
This file contains 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
@BooleanVariableMethod(initialValue = true) | |
public void showLabels(Boolean showLabels) { | |
indicator.showLabels(showLabels); | |
} |
This file contains 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
@RangeVariableMethod(minValue = 6, maxValue = 70, initialValue = 20) | |
public void setLabelSize(Float fontSize) { // Float? in Kotlin | |
indicator.setLabelSize(fontSize); | |
} |
This file contains 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
// These 2 lines can be done in Application class | |
RemixerInitialization.initRemixer(getApplication()); | |
Remixer.getInstance().setSynchronizationMechanism(new LocalStorage(getApplicationContext())); | |
RemixerBinder.bind(this); // pass an Activity instance | |
final FloatingActionButton remixerButton = findViewById(R.id.remixerButton); | |
RemixerFragment.newInstance().attachToFab(this, remixerButton); | |
// or attach to button, swipe up gesture or even a phone shake | |
// https://github.com/material-foundation/material-remixer-android/blob/develop/docs/CONFIGURE_UI.md |
This file contains 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
compile 'com.github.material-foundation.material-remixer-android:remixer:1.0' | |
annotationProcessor 'com.github.material-foundation.material-remixer-android:remixer_annotation:1.0' |
This file contains 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
package com.example.android_transition_samples.app; | |
import android.animation.Animator; | |
import android.animation.AnimatorSet; | |
import android.animation.ObjectAnimator; | |
import android.animation.PropertyValuesHolder; | |
import android.content.Context; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.view.View; |
This file contains 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
package me.rakshakhegde.locationapp | |
import android.app.Activity | |
import android.arch.lifecycle.Lifecycle | |
import android.arch.lifecycle.LifecycleObserver | |
import android.arch.lifecycle.OnLifecycleEvent | |
import android.content.IntentSender | |
import android.location.Location | |
import android.os.Bundle | |
import android.util.Log |
This file contains 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 time | |
from selenium import webdriver | |
import csv | |
import urllib.request | |
driver = webdriver.Chrome() | |
driver.implicitly_wait(5) | |
base_url = "https://baseurl/login/" | |
verificationErrors = [] | |
accept_next_alert = True |
NewerOlder