This file contains 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
/** | |
* Copyright (C) 2017 Drew Hannay | |
* <p> | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* <p> | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* <p> | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
package com.linkedin.util; | |
import android.os.Bundle; | |
import android.support.test.InstrumentationRegistry; | |
import android.support.test.runner.AndroidJUnitRunner; | |
import com.linkedin.android.testbutler.TestButler; | |
public class ExampleTestRunner extends AndroidJUnitRunner { | |
@Override |
This file contains 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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
#parse("File Header.java") | |
public class ${NAME} { | |
private static final String TAG = "${NAME}"; | |
} |
This file contains 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.animation.ValueAnimator; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.animation.LinearInterpolator; | |
public abstract class ExpandableItemViewHolder extends RecyclerView.ViewHolder { | |
private int mOriginalHeight; | |
private boolean mIsViewExpanded; |
This file contains 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.content.Intent; | |
import android.support.v4.content.AsyncTaskLoader; | |
import android.support.v4.content.LocalBroadcastManager; | |
/** | |
* Base class which takes care of the boilerplate details involved in extending | |
* AsyncTaskLoader and adds convenience methods for registering and unregistering | |
* an observer for the Loader | |
* |
This file contains 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
if [ $# -lt 1 ] | |
then | |
echo "Usage:" | |
echo " commands" | |
echo " setOptions \$databaseName \$packageName" | |
echo " ls" | |
echo " pull" | |
echo " push" | |
exit |
This file contains 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
# Select entire paragraph and rewrap the text | |
vip gq | |
# vim LaTeX | |
zr # unfold one level | |
zR # unfold all levels | |
zm # fold one level | |
zM # fold all levels | |
\ll # compile LaTeX document | |
\lv # view compiled LaTeX PDF |