Skip to content

Instantly share code, notes, and snippets.

View radzio's full-sized avatar
👨‍💻
Coding

Radek Piekarz radzio

👨‍💻
Coding
View GitHub Profile

Keybase proof

I hereby claim:

  • I am radzio on github.
  • I am radzio (https://keybase.io/radzio) on keybase.
  • I have a public key ASCXQuDHoZ_wR4XsxPROEOYtzn38vcHRPNb2Msutwc6d-wo

To claim this, I am signing this object:

import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
@radzio
radzio / build.gradle
Last active August 29, 2015 14:27
Automatically sets JDK_1_8 in Android Studio java module
apply plugin: 'java'
apply plugin: 'idea'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations {
// pending http://jira.codehaus.org/browse/GRADLE-471
providedCompile { description = 'Jars not to be included in the generated POM' }
/*
Xively MQTT example
-Subscribes to Xively feed
-publishes current value to serial monitor
Based on Basic MQTT Example by knolleary
By Calum Barnes, Xively (c) 2013