Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Kula matthewrkula

View GitHub Profile
View BindingUtility.kt
@BindingAdapter("onTextChanged")
fun onTextChanged(inputText: InputText, block: (String) -> Unit) {
inputText.addTextChangedListener(object : TextWatcher {
override fun onTextChanged(CharSequence s, int start, int before, int count) {
block(s.toString())
}
})
}
@matthewrkula
matthewrkula / build.gradle
Created Jan 9, 2020
Kotlin Coroutines Playground Setup
View build.gradle
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
}
group 'CoroutinesPlayground'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
View .vimrc
syntax enable
colorscheme elflord
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set paste
set number
let mapleader = "\<Space>"
View .bash_profile
push ()
{
git push -u origin "$(git rev-parse --abbrev-ref HEAD)"
}
pushf ()
{
git push -f -u origin "$(git rev-parse --abbrev-ref HEAD)"
}
function _update_ps1() {
View keybase.md

Keybase proof

I hereby claim:

  • I am matthewrkula on github.
  • I am mattkula (https://keybase.io/mattkula) on keybase.
  • I have a public key ASDnxCOi0Yv45vxWfD7mXDVaP1jUGaHHqv7pocJpkheYlAo

To claim this, I am signing this object:

View gist:9fde37d20ed173229c623df029a3e3c4
export FBANDROID_DIR=/Users/mattkula/fbsource/fbandroid
alias quicklog_update=/Users/mattkula/fbsource/fbandroid/scripts/quicklog/quicklog_update.sh
alias qlu=quicklog_update
export EDITOR=vim
export PATH="/opt/android_ndk/android-ndk-r10e:$PATH"
export PATH="/opt/android_sdk/tools:$PATH"
export PATH="/opt/android_sdk/platform-tools:$PATH"
export ANDROID_SDK=/opt/android_sdk
export ANDROID_HOME=/opt/android_sdk
View a.java
public class DetailFragment extends Fragment {
// public List<Step> step;
public ArrayList < Step > stepList;
public Step currentStep;
public ExoPlayer mExoPlayer;
public SimpleExoPlayerView mPlayerView;
public int position;
public String videoURL;
public Uri videoUri;
public TextView textView;
View gist:8191ddf728b45e1d6a4d602157478a32
public class DetailFragment extends Fragment {
// public List<Step> step;
public ArrayList < Step > stepList;
public Step currentStep;
public ExoPlayer mExoPlayer;
public SimpleExoPlayerView mPlayerView;
public int position;
public String videoURL;
public Uri videoUri;
public TextView textView;
View gist:dd161cac82682f3a8107c711411f2b3b
public class DetailFragment extends Fragment {
// public List<Step> step;
public ArrayList<Step> stepList;
public Step currentStep;
public ExoPlayer mExoPlayer;
public SimpleExoPlayerView mPlayerView;
public int position;
public String videoURL;
public Uri videoUri;
public TextView textView;
View gist:97f295dfa721b85e6626
try {
final Socket socket = serverSocket.accept();
final boolean[] accept = { false };
new Handler(Looper.getMainLooper()).post(() -> {
new AlertDialog.Builder(lobbyActivity)
.setTitle("Incoming Request")
.setMessage("Incoming Game Request")
.setPositiveButton(android.R.string.yes, (dialog, which) -> {
accept[0] = true;
try {
You can’t perform that action at this time.