Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT) | |
.addCategory(Intent.CATEGORY_OPENABLE) | |
.setType("image/jpeg") | |
.putExtra(Intent.EXTRA_TITLE, "Image"); | |
startActivityForResult(intent, 555); |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
// Dagger 1 example | |
@Module( | |
complete = false, | |
library = true | |
) | |
public final class ApiModule { | |
@Provides | |
@Singleton | |
Retrofit provideRetrofit(Gson gson, Application app) { | |
return new Retrofit.Builder() |
import java.util.HashMap; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import android.os.SystemClock; | |
public class TimeExpiringLruCache<K, V> { | |
private final LinkedHashMap<K, V> map; | |
private final HashMap<K, Long> validityTime; |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var json_Album_URI = "https://picasaweb.google.com/data/feed/base/" | |
+ "user/" + "thewoodsmyth" | |
+ "?alt=" + "json" | |
+ "&kind=" + "album" |
import gherkin.AstBuilder; | |
import gherkin.Parser; | |
import gherkin.util.FixJava; | |
import java.io.*; | |
public class Verify { | |
private static boolean hasErrors = false; | |
public static void main(String[] args) throws Exception { |
import java.util.*; | |
import rx.*; | |
import rx.Observable.Operator; | |
import rx.Observable; | |
import rx.observers.TestSubscriber; | |
import rx.subjects.*; | |
public class RxEventBus<T> { |
import java.util.Queue; | |
import java.util.concurrent.atomic.*; | |
import rx.*; | |
import rx.Observable.Operator; | |
import rx.exceptions.MissingBackpressureException; | |
import rx.internal.operators.*; | |
import rx.internal.util.*; | |
import rx.internal.util.atomic.SpscAtomicArrayQueue; |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
package com.example.NestedScrollViewScrollToAction; | |
import android.graphics.Rect; | |
import android.support.design.widget.CoordinatorLayout; | |
import android.support.test.espresso.PerformException; | |
import android.support.test.espresso.UiController; | |
import android.support.test.espresso.ViewAction; | |
import android.support.test.espresso.matcher.ViewMatchers.Visibility; | |
import android.support.test.espresso.util.HumanReadables; | |
import android.support.v4.widget.NestedScrollView; |