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
println "test" |
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
public class ParseNotificationWatcher { | |
private final ParseNotificationManager notificationManager; | |
private final NotificationBuilder notificationBuilder; | |
public ParseNotificationWatcher(ParseNotificationManager notificationManager, NotificationBuilder notificationBuilder) { | |
this.notificationManager = notificationManager; | |
this.notificationBuilder = notificationBuilder; | |
} |
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
public class NavDrawerArrayAdapter extends ArrayAdapter<String> { | |
public NavDrawerArrayAdapter(final Context context) { | |
super(context, android.R.layout.simple_list_item_activated_1, android.R.id.text1, | |
new ArrayList<String>() {{ | |
add(context.getString(R.string.nav_drawer_section_explore)); | |
add(context.getString(R.string.nav_drawer_section_rewards)); | |
add(context.getString(R.string.nav_drawer_section_offers)); | |
add(context.getString(R.string.nav_drawer_section_events)); | |
}}); | |
refresh(); |
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
subprojects { | |
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url "https://oss.sonatype.org/content/repositories/snapshots" | |
} | |
maven { | |
url "https://github.com/novoda/public-mvn-repo/raw/master/releases" | |
} |
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
Runnable somethingIWannaDo = new Runnable() { | |
@Override | |
public void run() { | |
Log.d("EZ", "I got ran"); | |
} | |
}; | |
// In Android Activity onCreate: | |
RunnableButton.create("BCM21", somethingIWannaDo).onCreateInjectInto(this); |
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 com.puppycrawl.tools.checkstyle.api.*; | |
public class AntiHungarianCheck extends Check { | |
private static final String CATCH_MSG = "Hungarian notation belongs in the 90's. " + | |
"Don't prefix member variables with 'm'. " + | |
"Use your IDE's shiny colors. Culprit was: "; | |
private final HungarianNotationMemberDetector detector = new HungarianNotationMemberDetector(); |
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
/** | |
* https://gist.github.com/JakeWharton/0a251d67649305d84e8a | |
* <p/> | |
* Then modified to : | |
* not scale the foreground to the ImageView size | |
* draw the foreground centered | |
*/ | |
public class ForegroundImageView extends ImageView { | |
private Drawable foreground; |
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
<!-- Begin Mailchimp Signup Form --> | |
<style type="text/css"> | |
#mc_embed_signup { border: none; text-align: center; width: 100%; } /* Signup form container */ | |
.mc-field-group { display: inline-block; } /* positions input field horizontally */ | |
#mce-EMAIL { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1em; ; border:none; border-bottom: 2px solid #000; color: #343434; background-color: transparent; padding: .7em 30em .7em 1em; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; display: inline-block; margin: 0; } /* Input Styles */ | |
.clear { display: inline-block; } /* positions button horizontally in line with input */ |
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
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<VideoView | |
android:id="@+id/my_video_view" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_gravity="center" /> |