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.squareup.okhttp.sample; | |
import com.squareup.okhttp.ConnectionPool; | |
import com.squareup.okhttp.OkHttpClient; | |
import java.lang.reflect.Field; | |
import twitter4j.Paging; | |
import twitter4j.ResponseList; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterFactory; | |
import twitter4j.auth.AccessToken; |
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 roboguice.astroboy; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
import com.google.inject.internal.Nullable; | |
import roboguice.inject.InjectView; |
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.sceneTap.views; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapShader; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.ColorFilter; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.graphics.Shader; |
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
adjectives = dict(a="red", b="orange", c="green", d="blue", e="yellow", f="orange", g="black", h="super", i="mysterious", j="flying", k="purple", l="sparkling", m="flashing", n="courageous", o="singing", p="tender", q="magnificent", r="radioactive", s="hypnotic", t="screaming", u="ultraviolet", v="royal", w="tap dancing", x= "silent", y="angry", z="amazing") | |
nouns = dict(a="waffle", b="turtle", c="lantern", d="herb garden", e="trampoline", f="marshmallow", g="ghost", h="tent", i="water bottle", j="rattle", k="cell phone", l="romantic", m="restaurant", n="coin purse", o="quail", p="pineapple", q="mosquito", r="wrestler", s="sun", t="walrus", u="vigilante", v="jester", w="teddy bear", x= "python", y="racoon", z="wombat") |
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
Microserfs, published by HarperCollins in 1995, is an epistolary novel by Douglas Coupland. It first appeared in short story form as the cover article for the January 1994 issue of Wired magazine and was subsequently expanded to full novel length. Set in the early 1990s, it captures the state of the technology industry before Windows 95, and anticipates the dot-com bubble of the late 1990s. | |
The novel is presented in the form of diary entries maintained on a PowerBook by the narrator, Daniel. Because of this, as well as its formatting and usage of emoticons, this novel is similar to what emerged a decade later as the blog format. | |
Coupland revisited many of the ideas in Microserfs in his 2006 novel JPod, which has been labeled "Microserfs for the Google generation". |
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.eclipsesource.overlay; | |
public class Entry { | |
private final int imageResId; | |
private final String title; | |
private final int id; | |
public Entry( int imageResId, String title, int id ) { |
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
dependencies { | |
def dagger_version = "1.1.0" | |
compile "com.squareup.dagger:dagger:${dagger_version}" | |
compile "com.squareup.dagger:dagger-compiler:${dagger_version}" | |
} |
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
function dex-method-count() { | |
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
} | |
function dex-method-count-by-package() { | |
dir=$(mktemp -d -t dex) | |
baksmali $1 -o $dir | |
for pkg in `find $dir/* -type d`; do | |
smali $pkg -o $pkg/classes.dex | |
count=$(dex-method-count $pkg/classes.dex) |
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.example.scalpeldrawer; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.support.v4.widget.DrawerLayout; | |
import android.util.AttributeSet; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.CheckBox; |
OlderNewer