Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rekire's full-sized avatar

René Kilczan rekire

View GitHub Profile
@rekire
rekire / MeasureCallbackLayout.java
Created December 23, 2016 06:15
A small layout to observe measure calls to know when the layout dimentions are fixed.
public class MeasureCallbackLayout extends FrameLayout {
private final List<MeasureCallback> listeners = new ArrayList<>();
private int width = -1;
private int height = -1;
public MeasureCallbackLayout(Context context) {
super(context);
}
public MeasureCallbackLayout(Context context, AttributeSet attrs) {
@rekire
rekire / Windows Deutsch.keylayout
Last active July 28, 2016 05:43
You are familar with a Windows Keyboard, but you have to use a Mac? No problem use this nice KeyMap with will fix the key mapping for you! Just copy this file to /Library/Keyboard Layouts/ and select in the system settings the "Windows Deutsch" keyboard layout.
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Last edited by Ukelele version 3.0.2.59 on 2016-06-30 at 22:02 (MESZ)-->
<keyboard group="6" id="19307" maxout="11" name="Windows Deutsch">
<layouts>
<layout first="0" last="4" mapSet="fb0" modifiers="84"/>
<layout first="5" last="5" mapSet="18c" modifiers="84"/>
<layout first="8" last="9" mapSet="18c" modifiers="84"/>
<layout first="13" last="13" mapSet="18c" modifiers="84"/>
</layouts>
@rekire
rekire / android23.tag
Created January 5, 2016 08:28
External Android documentation for any doxygen project that should link to the orginal Android documentation. Just link that file in the expert tab under external as TAGFILES entry.
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?><tagfile>
<compound kind="class">
<name>org::apache::harmony::tests::java::util::support::A</name>
<filename>http://developer.android.com/reference/org/apache/harmony/tests/java/util/support/A.html</filename>
<base>org::apache::harmony::tests::java::util::support::I</base>
</compound>
<compound kind="class">
<name>com::android::settingslib::bluetooth::A2dpProfile</name>
<filename>http://developer.android.com/reference/com/android/settingslib/bluetooth/A2dpProfile.html</filename>
<base>com::android::settingslib::bluetooth::LocalBluetoothProfile</base>
@rekire
rekire / IterableSparseArray.java
Last active February 11, 2019 13:35
Customized SparseArray which allows using a iterator.
/**
* @copyright
* This code is licensed under the Rekisoft Public License.
* See http://www.rekisoft.eu/licenses/rkspl.html for more informations.
*/
/**
* @package eu.rekisoft.android.util
* This package contains utils provided by [rekisoft.eu](http://rekisoft.eu/).
*/
package eu.rekisoft.android.util;
@rekire
rekire / build.gradle
Created March 24, 2014 09:48
Example of a gradle file for an Android library which does not support gradle yet.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android-library'
@rekire
rekire / android19.tag
Created November 27, 2013 13:13
External Android documentation for any doxygen project that should link to the orginal Android documentation. Just link that file in the expert tab under external as TAGFILES entry. Please note that this version causes multiple warnings and nested classes/interfaces are not correctly linked. I will fix that later.
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<tagfile>
<compound kind="class">
<name>android::accessibilityservice::AccessibilityService</name>
<filename>http://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html</filename>
<base>android::app::Service</base>
<class kind="interface">android::accessibilityservice::AccessibilityService::Callbacks</class>
<class kind="class">android::accessibilityservice::AccessibilityService::IAccessibilityServiceClientWrapper</class>
<member kind="function" virtualness="pure">
<type>abstract void</type>
@rekire
rekire / googleautopager.user.js
Created November 19, 2013 07:58
GreaseMoney Script for paging the google results. So you can scroll thrue all pages without clicking.
// ==UserScript==
// @name GoogleAutoPager
// @namespace http://ma.la/
// @author ma.la <timpo@ma.la>
// @include http?://www.google.*/search*
// @include https://encrypted.google.com/search*
// @include https://www.google.com/webhp*
// @exclude http?://www.google.*/*tbm=isch*
// @grant GM_xmlhttpRequest
// @description Add autoloading for next page to Google search result. DblClick to enable/disable it.
@rekire
rekire / EditMail.java
Last active December 26, 2015 01:39
TextView for Android which checks automatically if a domain can receive emails. IDN domains are supported and it includes a mx check if the domain can receive emails. It requires this gist (https://gist.github.com/rekire/7072650) and xbill (http://www.xbill.org/dnsjava/). This small util will maybe get a full repo later, now you can play with it…
/**
* @copyright
* This code is licensed under the Rekisoft Public License.
* See http://www.rekisoft.eu/licenses/rkspl.html for more informations.
*/
/**
* @package eu.rekisoft.android.controls
* This package contains controls provided by [rekisoft.eu](http://rekisoft.eu/).
*/
package eu.rekisoft.android.controls;
@rekire
rekire / UiWorker.java
Last active December 26, 2015 01:39
Helper class for simple execution of tasks on the UI thread.
/**
* @copyright
* This code is licensed under the Rekisoft Public License.
* See http://www.rekisoft.eu/licenses/rkspl.html for more informations.
*/
package eu.rekisoft.android.util;
import android.os.Handler;
import android.os.Looper;
@rekire
rekire / MailChecker.java
Last active July 7, 2020 21:03
Implementation for validating email addresses, it supports IDN domains and it checks if the domain has a mx record. It requires the xbill lib (http://www.xbill.org/dnsjava/).
/**
* @copyright
* This code is licensed under the Rekisoft Public License.
* See http://www.rekisoft.eu/licenses/rkspl.html for more informations.
*/
package eu.rekisoft.android.util;
import java.net.IDN;
import java.util.Arrays;