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 StringUtils.encodeHex | |
| import java.io.File | |
| import java.io.FileInputStream | |
| import java.io.InputStream | |
| import java.security.MessageDigest | |
| object HashUtils { | |
| const val STREAM_BUFFER_LENGTH = 1024 |
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
| /** | |
| * View showing rotating SweepGradient. | |
| */ | |
| class RotatingGradientView @JvmOverloads constructor( | |
| context: Context?, | |
| attrs: AttributeSet? = null, | |
| defStyleAttr: Int = 0 | |
| ) : View(context, attrs, defStyleAttr) { | |
| private val paint = Paint(Paint.ANTI_ALIAS_FLAG) | |
| private var middleX = 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
| package com.scarozza; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.RectF; | |
| import android.util.AttributeSet; | |
| import com.github.mikephil.charting.animation.ChartAnimator; |
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 android.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.util.TypedValue; | |
| import android.view.View; | |
| import android.view.ViewTreeObserver; | |
| public class KeyboardEventListener implements ViewTreeObserver.OnGlobalLayoutListener { | |
| private final Activity activity; |
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
| #--------------------------------------------------------------------- | |
| # НАСТРОЙКИ | |
| #--------------------------------------------------------------------- | |
| # Показать глобальную конфигурацию: | |
| git config --global --list | |
| git config --local user.name "user name" | |
| git config --local user.email "user@email.com" | |
| git config --local core.fileMode false |
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
| /* Copyright 2019 The Android Open Source Project | |
| * | |
| * 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 | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, |
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
| android { | |
| signingConfigs { | |
| getByName("debug") { | |
| keyAlias = "debug" | |
| keyPassword = "my debug key password" | |
| storeFile = file("/home/miles/keystore.jks") | |
| storePassword = "my keystore password" | |
| } | |
| create("release") { | |
| keyAlias = "release" |
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 android.os.Bundle | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import androidx.core.view.ViewCompat | |
| import androidx.core.widget.NestedScrollView | |
| import androidx.fragment.app.Fragment | |
| import androidx.recyclerview.widget.RecyclerView | |
| import kotlinx.android.synthetic.main.fragment_data.nsvData | |
| import kotlinx.android.synthetic.main.fragment_data.rvData |
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
| new Promise(resolve => { | |
| var offset = -100; | |
| let pageScroll = () => { | |
| window.scrollBy(0, 50); | |
| if (window.pageYOffset === offset) { | |
| return resolve(true); | |
| } | |
| offset = window.pageYOffset; | |
| setTimeout(pageScroll, 50); |
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
| image: jangrewe/gitlab-ci-android | |
| before_script: | |
| - export GRADLE_USER_HOME=$(pwd)/.gradle | |
| - chmod +x ./gradlew | |
| cache: | |
| key: ${CI_PROJECT_ID} | |
| paths: | |
| - .gradle/ |
NewerOlder