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.annotation.SuppressLint | |
| import android.graphics.Canvas | |
| import android.graphics.Color | |
| import android.graphics.Matrix | |
| import android.graphics.Paint | |
| import android.graphics.Path | |
| import android.graphics.drawable.Drawable | |
| import android.util.TypedValue | |
| import androidx.annotation.ColorInt | |
| import androidx.appcompat.graphics.drawable.DrawableWrapper |
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
| api=28 | |
| branch=android-9.0.0_r3 | |
| mkdir android-sdk-source-build | |
| cd android-sdk-source-build | |
| mkdir -p frameworks/base | |
| # Fetch repositories that contain the sources we're interested in | |
| git clone --depth 1 https://android.googlesource.com/platform/frameworks/base -b $branch frameworks/base |
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
| class Classyshark < Formula | |
| desc "Executables browser for Android, Java and Kotlin" | |
| homepage "https://github.com/google/android-classyshark" | |
| url "https://github.com/google/android-classyshark/releases/download/8.1/ClassyShark.jar" | |
| sha256 "73f0f8854a564d0eec4550fd69ebc239a38ae82f57e95cffb45890ba1b2e8098" | |
| head do | |
| url "https://github.com/google/android-classyshark.git" | |
| depends_on "gradle" => :build | |
| end |
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.support.v7.widget.RecyclerView; | |
| import android.util.SparseArray; | |
| import android.view.LayoutInflater; | |
| import android.view.ViewGroup; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import java.util.Objects; | |
| public abstract class BinderRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
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.app.Service; | |
| import android.content.Intent; | |
| import android.os.IBinder; | |
| import android.support.annotation.Nullable; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| import rx.Completable; | |
| import rx.Subscription; | |
| import rx.schedulers.Schedulers; |
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.annotation.SuppressLint; | |
| import android.os.Bundle; | |
| import android.os.Parcelable; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentTransaction; | |
| import android.support.v4.util.LongSparseArray; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.view.View; |
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
| #!/usr/bin/env bash | |
| # | |
| # Generate a set of PNG images for multiple densities from SVG image. | |
| # | |
| # Usage: ./generate_pngs.sh input.svg | |
| # | |
| # Prerequisites: | |
| # macOS: brew install librsvg | |
| # Linux: sudo apt install librsvg2-bin | |
| # |
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.Context; | |
| import android.support.annotation.Keep; | |
| import android.support.annotation.Nullable; | |
| import android.support.design.widget.AppBarLayout; | |
| import android.support.design.widget.CoordinatorLayout; | |
| import android.support.v4.view.ViewCompat; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| @Keep |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\shell\msys2_shell] | |
| @="Open MSYS2 here" | |
| [HKEY_CLASSES_ROOT\Directory\shell\msys2_shell\command] | |
| @="c:\\dev\\tools\\msys2\\usr\\bin\\mintty.exe -i c:\\dev\\tools\\msys2\\msys2.ico /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell] | |
| @="Open MSYS2 here" |
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.app.Activity; | |
| import android.app.Application; | |
| import android.content.Context; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /** |
NewerOlder