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
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
import android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.ArrayList; | |
import java.util.List; |
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
#!/bin/bash | |
declare -A available=( [00]=1 [01]=2 [02]=3 [10]=4 [11]=5 [12]=6 [20]=7 [21]=8 [22]=9 ) | |
declare -A pass | |
code="" | |
keyByNumber () { | |
if [[ $next < 4 ]]; then | |
calc=$(($next-1)) |
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
#!/bin/bash | |
uno clean | |
fuse build --target=Android --configuration=Release | |
# copy provider to xml folder | |
mkdir -p build/Android/Release/app/src/main/res/xml | |
cp provider_paths.xml build/Android/Release/app/src/main/res/xml/ | |
# change manifest |
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
postman.setEnvironmentVariable('token', JSON.parse(responseBody).token); |
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
openapi: 3.0.1 | |
info: | |
title: Swagger Petstore | |
description: 'This is a sample server Petstore server. You can find out more about Swagger | |
at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For | |
this sample, you can use the api key `special-key` to test the authorization filters.' | |
termsOfService: http://swagger.io/terms/ | |
contact: | |
email: apiteam@swagger.io | |
license: |
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.content.pm.PackageManager | |
import android.os.Build | |
import androidx.core.app.ActivityCompat | |
import io.reactivex.Single | |
import io.reactivex.subjects.SingleSubject | |
import javax.inject.Inject | |
import javax.inject.Singleton | |
//Использование в MainActivity: | |
// override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) { |