Skip to content

Instantly share code, notes, and snippets.

View jfsso's full-sized avatar
🍼
🚼

João Orui jfsso

🍼
🚼
  • Drivemode, Inc.
  • Tokyo, Japan
View GitHub Profile
@jfsso
jfsso / TwoLinesListPreference.java
Created April 21, 2012 02:37
Android two lines ListPreference (title and subtitle)
package jp.joao.android.preference;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.preference.ListPreference;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@jfsso
jfsso / gist:4143401
Created November 25, 2012 13:00
Heimdall flash kernel log
Heimdall v1.3.2, Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
@Override
public void onBackPressed() {
if (!returnBackStackImmediate(getSupportFragmentManager())) {
super.onBackPressed();
}
}
// HACK: propagate back button press to child fragments.
// This might not work properly when you have multiple fragments adding multiple children to the backstack.
// (in our case, only one child fragments adds fragments to the backstack, so we're fine with this)
@jfsso
jfsso / gist:9482161
Created March 11, 2014 09:14
error in picasso with okhttp 1.5.0
java.lang.NullPointerException: Attempt to read from field 'int com.squareup.okhttp.internal.okio.Segment.limit' on a null object reference
at com.squareup.okhttp.internal.okio.OkBuffer.write(OkBuffer.java:507)
at com.squareup.okhttp.internal.okio.OkBuffer.read(OkBuffer.java:543)
at com.squareup.okhttp.internal.okio.RealBufferedSource.read(RealBufferedSource.java:53)
at com.squareup.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:413)
at com.squareup.okhttp.internal.okio.RealBufferedSource$1.read(RealBufferedSource.java:168)
at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:168)
at java.io.BufferedInputStream.read(BufferedInputStream.java:288)
at com.squareup.picasso.MarkableInputStream.read(MarkableInputStream.java:138)
at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
@jfsso
jfsso / Mixpanel.java
Last active December 16, 2015 09:45
MixpanelAPI wrapper
import android.app.Activity;
import com.mixpanel.android.mpmetrics.MixpanelAPI;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
@jfsso
jfsso / draw_over_other_apps.tsv
Last active September 29, 2016 06:37
How "draw over other apps" is translated in AOSP
base Draw over other apps
af Teken oor ander programme
am በሌሎች መተግበሪያዎች ላይ ይሳሉ
ar الظهور أمام التطبيقات الأخرى
az-rAZ Digər tətbiqlər üzərində çəkin
bg Изобр. върху други приложения
bn-rBD অন্যান্য অ্যাপ্লিকেশানের উপর অঙ্কন
ca Dibuixa sobre altres aplicac.
cs Vykreslení přes další aplikace
@jfsso
jfsso / notification_access.tsv
Last active May 11, 2016 03:02
How "notification access" is translated in AOSP
base Notification access
af Kennisgewingtoegang
am የማሳወቂያ መዳረሻ
ar الدخول إلى الإشعارات
az-rAZ Bildiriş girişi
bg Достъп до известията
bn-rBD বিজ্ঞপ্তির অ্যাক্সেস
ca Accés a les notificacions
cs Přístup k oznámením
@jfsso
jfsso / aosp_translation_engines.tsv
Created May 11, 2016 13:43
How TTS "Engine" is translated in AOSP
base Engines
af Enjins
am አንቀሳቃሾች
ar المحركات
az-rAZ Mühərriklər
bg Машини
bn-rBD ইঞ্জিন
ca Motors
cs Moduly
da Maskiner
@jfsso
jfsso / aops_translation_tts.tsv
Last active May 11, 2016 13:48
How "Text-to-speech" is translated in AOSP
base Text-to-speech settings
af Teks-na-spraak-instellings
am ፅሁፍ-ወደ-ንግግር ቅንብሮች
ar إعدادات تحويل النص إلى كلام
az-rAZ Mətndən-danışığa parametrləri
bg Настройки за синтезиран говор
bn-rBD পাঠ্য থেকে ভাষ্য আউটপুট সেটিংস
ca Configuració de síntesi de veu
cs Nastavení převodu textu na řeč
da Indstillinger for oplæsning
@jfsso
jfsso / keybase.md
Created May 28, 2016 14:41
keybase.md

Keybase proof

I hereby claim:

  • I am jfsso on github.
  • I am joaoorui (https://keybase.io/joaoorui) on keybase.
  • I have a public key ASAmlH41BPjuPQA8IUUMz9FEH-GFfo_Bi7aO9Y69OwX3kQo

To claim this, I am signing this object: