Skip to content

Instantly share code, notes, and snippets.

View kamaubrian's full-sized avatar
🤓
KAIZEN

Kamau Brian kamaubrian

🤓
KAIZEN
View GitHub Profile
@kamaubrian
kamaubrian / checkGooglePlayServicesAvailable.java
Created October 10, 2018 17:34
Android: Check whether Google Play Services are installed and current
/**
* Check whether Google Play Services are available.
*
* If not, then display dialog allowing user to update Google Play Services
*
* @return true if available, or false if not
*/
private boolean checkGooglePlayServicesAvailable()
{
final int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
@kamaubrian
kamaubrian / zsh.md
Created December 18, 2017 15:58 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@kamaubrian
kamaubrian / LoginController.java
Created September 27, 2017 18:01 — forked from jewelsea/LoginController.java
JavaFX sample for an fxml based Login screen to main application transition with login session data transfer
package login;
import javafx.event.*;
import javafx.fxml.FXML;
import javafx.scene.control.*;
/** Controls the login screen */
public class LoginController {
@FXML private TextField user;
@FXML private TextField password;
@kamaubrian
kamaubrian / gist:dcd344334a50b63dd67bd84f77e16717
Created September 21, 2017 04:47 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.