Instead of the verbose setOnClickListener:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));Observable
.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication2 | |
| { | |
| class Program |
| public class Log4NetFileHelper | |
| { | |
| private string DEFAULT_LOG_FILENAME=string.Format("application_log_{0}.log",DateTime.Now.ToString("yyyyMMMdd_hhmm")); | |
| Logger root; | |
| public Log4NetFileHelper() | |
| { | |
| } | |
| public virtual void Init() |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <resources> | |
| <!-- Totally "960 Colors" | |
| Author : VenomVendor | |
| Refer : http://stackoverflow.com/q/3769762/1008278 | |
| Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html | |
| --> | |
| <!-- Colors arranged from A -Z --> | |
| <color name="air_force_blue">#5D8AA8</color> |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin <branch-name> |
| <?xml version="1.0" encoding="utf-8"?><!-- | |
| ~ Copyright (C) 2015 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 | |
| ~ | |
| ~ http://www.apache.org/licenses/LICENSE-2.0 | |
| ~ | |
| ~ Unless required by applicable law or agreed to in writing, software |
| version: "3" | |
| services: | |
| homeassistant: | |
| container_name: homeassistant | |
| image: homeassistant/home-assistant:latest | |
| restart: unless-stopped | |
| volumes: | |
| - ./homeassistant/config:/config | |
| - /etc/localtime:/etc/localtime:ro | |
| ports: |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
| Criteria | Appium | Espresso | UiAutomator | |
|---|---|---|---|---|
| Execution Time | Slow (test case: 12.154 sec) | Fast (test case: 0.967 sec) | Medium (test case: 8.743 sec) | |
| Supported languages | Java, Kotlin, C#, JavaScript, Python, Ruby | Java, Kotlin | Java, Kotlin | |
| Test Type | Black Box | Gray Box | Black Box | |
| Setup | Hard (separate module, capabilities (device, app, etc.)) | Easy (part of the project) | Easy (part of the project) |