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 / 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 / LazyWorker.java
Last active December 26, 2015 01:39
LazyWorker is my helper class for doing taks delayed. Such as checking inputs which require network operations and should not been done after each key down.
/**
* @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 utilities provided by [rekisoft.eu](http://rekisoft.eu/).
*/
package eu.rekisoft.android.util;
@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 / 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 / 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 / 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 / FirebaseCrash.java
Created February 12, 2017 16:12
Firebase crash reporting mock.
package com.google.firebase.crash;
import android.util.Log;
/**
* Created by René Kilczan on 11.02.17.
*/
public class FirebaseCrash {
public static void log(String log) {
Log.d("FirebaseDebug", log);
@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 / ListTemplate2.json
Created January 10, 2018 15:59
Example JSON for the ListTemplate2
{
"version": "1.0",
"sessionAttributes": {},
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "Hallo",
"ssml": "<speak>Hallo</speak>"
},
"reprompt": {
@rekire
rekire / listItem.json
Created January 10, 2018 18:46
Example of a list item for a Alexa ListTemplate
{
"token": "cheese1",
"image": {
"contentDescription": "desc1",
"sources": [
{
"url": "http://www.example.com/gouda.jpg"
}
]
},