Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View matthewrkula's full-sized avatar

Matt Kula matthewrkula

  • OpenSea
  • Denver, CO
View GitHub Profile
public static void paintFill(int[][] image, int x, int y, int oldColor, int newColor) {
if (x < 0 || x == image[0].length || y < 0 || y == image.length) {
return;
}
if (image[y][x] == oldColor) {
image[y][x] = newColor;
paintFill(image, x + 1, y, oldColor, newColor);
paintFill(image, x - 1, y, oldColor, newColor);
syntax enable
colorscheme murphy
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
let mapleader = "\<Space>"
" VUNDLE START
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 {
public boolean isTreeBalanced(Node root) {
return (maxDepth(root) - minDepth(root)) <= 1;
}
public int maxDepth(Node root) {
if (root == null) {
return 0;
}
return 1 + Math.max(maxDepth(root.leftChild), maxDepth(root.rightChild));
}
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;
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;
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;
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

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:

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() {