Skip to content

Instantly share code, notes, and snippets.

@sinistance
sinistance / AndroidmaxES-USBDebug.java
Last active May 7, 2016
AndroidmaxES USB Debug Enabler
View AndroidmaxES-USBDebug.java
//Password usb debugging Andromax Es C46B2G
import java.util.zip.CRC32;
public class Main
{
public static void main(String[] args)
{
//Ganti MEID dan IMEI (warna merah) di bawah sesuai di HP
//MEID wajib 14 character. Jika MEID ada 15 character, cukup pakai 14 character pertama saja
@sinistance
sinistance / AndroidStyle.xml
Last active Aug 29, 2015
Android Code Style Guidelines for Contributors
View AndroidStyle.xml
<code_scheme name="AndroidStyle">
<option name="JAVA_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="8" />
<option name="TAB_SIZE" value="8" />
<option name="USE_TAB_CHARACTER" value="false" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />
<option name="LABEL_INDENT_ABSOLUTE" value="false" />
@sinistance
sinistance / HeaderFooterRecyclerViewAdapter.java
Last active May 9, 2016
HeaderFooterRecyclerViewAdapter
View HeaderFooterRecyclerViewAdapter.java
package com.sinistance.watchme.view.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
public abstract class HeaderFooterRecyclerViewAdapter<VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> {
private static final int VIEW_TYPE_MAX_COUNT = 1000;
private static final int HEADER_VIEW_TYPE_OFFSET = 0;