This alias
adds ADB Screen Capture on the command-line
Add the alias to your ~/.bash_profile
alias screencap="adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > "
NOTE: to add adb
to the command-line
#!/bin/bash | |
# Installation | |
# ============ | |
# 1. Add this snippet to: `<REPO>/.git/hooks/pre-push` | |
# 2. Make sure to `chmod a+x <REPO>/.git/hooks/pre-push` to make the code executable | |
# Check if we actually have commits to push | |
commits=`git log @{u}..` | |
if [ -z "$commits" ]; then |
package com.your.package | |
import android.app.Dialog | |
import android.os.Bundle | |
import com.your.package.R | |
import com.google.android.material.bottomsheet.BottomSheetDialog | |
import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
/** | |
* BottomSheetDialog fragment that uses a custom |
# Tmux settings | |
# Set XTerm key bindings | |
setw -g xterm-keys on | |
# Set colors | |
set-option -g default-terminal "screen-256color" | |
# Set reload key to r | |
bind r source-file ~/.tmux.conf |
public class ClearableEditText extends EditText { | |
@BindDrawable(R.drawable.ic_clear_dark_gray) | |
Drawable mClearDrawable; | |
public ClearableEditText(Context context) { | |
super(context); | |
init(); | |
} | |
public ClearableEditText(Context context, AttributeSet attrs) { |
OkHttpClient okHttpClient = new OkHttpClient(); | |
okHttpClient.interceptors().add(mRefreshAndRetryInterceptor); | |
mRestAdapter = new RestAdapter.Builder() | |
... | |
.setClient(new OkClient(okHttpClient)) | |
.build(); | |
private final Interceptor mRefreshAndRetryInterceptor = new Interceptor() { |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |