Skip to content

Instantly share code, notes, and snippets.

View albka1986's full-sized avatar

Oleh Ponomarenko albka1986

View GitHub Profile
@albka1986
albka1986 / TransactionAdapter.kt
Created December 16, 2019 10:59
Adapter: group by date
class TransactionAdapter(private val context: Context) : RecyclerView.Adapter<ViewHolder>() {
companion object {
const val tag: String = "TransactionAdapter"
}
private var transactions: List<TransactionEntity?>? = null
private var isNewDate: Boolean = true
private var lastDate: String? = null
@albka1986
albka1986 / bitbucket-pipelines.yml
Last active May 10, 2020 18:27
Bitbucket Pipeline: Config file (Sample for Android Project )
image: openjdk:8
pipelines:
default:
- step:
caches:
- gradle
- android-sdk
script:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.40'
ext.navigation_version = '2.1.0-alpha05'
ext.room_version = "2.1.0"
ext.kodein_version = '5.2.0'
ext.retrofit_version = '2.5.0'
ext.lifecycle_version = '2.2.0-alpha01'
ext.glide_version = '4.9.0'
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'androidx.navigation.safeargs'
android {
android.applicationVariants.all { variant ->
variant.outputs.all {
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mainMotionLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_screen"
app:layoutDescription="@xml/scene_my_balance"
<?xml version="1.0" encoding="utf-8"?>
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<Transition
app:constraintSetEnd="@id/end"
app:constraintSetStart="@id/start">
iMac-Admin-2:~ oleg$ /bin/ls -l ~/.bash* ~/.profile
ls: /Users/oleg/.profile: No such file or directory
-rw-r--r-- 1 oleg staff 3120 Jan 25 16:36 /Users/oleg/.bash_history
-rw-r--r--@ 1 oleg staff 346 Jan 25 15:51 /Users/oleg/.bash_profile
-rw------- 1 oleg staff 12288 Jan 20 21:03 /Users/oleg/.bash_profile.swo
-rw------- 1 oleg staff 12288 Jan 20 20:42 /Users/oleg/.bash_profile.swp
/Users/oleg/.bash_sessions:
total 344
-rw-r--r-- 1 oleg staff 0 Jan 20 20:42 008A3E8C-D487-4108-B5B3-30E167842CAC.history
@albka1986
albka1986 / Appium logs
Last active November 22, 2016 12:58
Appium logs
Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' appium/build/lib/main.js --address "127.0.0.1" --debug-log-spacing --platform-version "9.3" --platform-name "iOS" --app "/Users/oleh/Documents/App/Project/iOS/build/sprint_2/file.app" --udid "A51CA68D-73FF-42D4-94D6-71408B88C6F9" --show-ios-log --device-name "iPhone 5s"
[Appium] Welcome to Appium v1.5.3
[Appium] Non-default server args:
[Appium] address: '127.0.0.1'
[Appium] debugLogSpacing: true
[Appium] platformName: 'iOS'