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)| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| #!/bin/bash | |
| function docker_run_shell { | |
| NAME=$1 | |
| DOCKERFILE=$2 | |
| # docker needs a few libraries, but not all - essential libs here | |
| BIND_LIBS=`ldd /usr/bin/docker | grep /lib/ | awk '{print $3}' | egrep '(apparmor|libseccomp|libdevmap|libsystemd-journal|libcgmanager.so.0|libnih.so.1|libnih-dbus.so.1|libdbus-1.so.3|libgcrypt.so.11)'` | |
| ARGS="" | |
| for LIB in $BIND_LIBS; do | |
| ARGS="$ARGS -v $LIB:$LIB:ro" |
| package codepath.com.recyclerviewfun; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Contact { | |
| private String mName; | |
| private boolean mOnline; | |
| public Contact(String name, boolean online) { |
| FROM buildpack-deps:jessie | |
| ENV RUBY_MAJOR 2.4 | |
| ENV RUBY_VERSION 2.4.0-preview2 | |
| ENV RUBY_DOWNLOAD_SHA256 fec544836428aada2dc593a8cc42ce330798a805e49ecb807a0e21b386fd0b14 | |
| ENV RUBYGEMS_VERSION 2.6.7 | |
| # skip installing gem documentation | |
| RUN echo 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc" |
Feedback loop speed in one of the biggest contributing factors to overall development time. The faster you get results, the faster you can move on to other things. A fast enough test suite is therefore critical to teams' success, and is worth investing some time at the beginning to save in the long run.
Below is a list of techniques for speeding up a Rails test suite. It is not comprehensive, but should definitely provide some quick wins. This list of techniques assumes you're using minitest, but most everything should translate over to rspec by simply replacing test/test_helper.rb with spec/spec_helper.rb.
Run mdadm - this command is used to manage and monitor software RAID devices in linux.
mdadm --detail /dev/md0 or md<N>
mount -t ext4 /dev/md0 /share/MD0_DATA
Check disks
mdadm --examine /dev/sdd3