Skip to content

Instantly share code, notes, and snippets.

View NLKNguyen's full-sized avatar

Nikyle Nguyen NLKNguyen

View GitHub Profile
@NLKNguyen
NLKNguyen / Installation.md
Created July 25, 2015 16:09
Work with Gradle on Ubuntu
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle
@NLKNguyen
NLKNguyen / Instruction.md
Last active August 29, 2015 14:24
Make Capslock key as Additional ESC in Ubuntu

sudo apt-get install gnome-tweak-tool -y && gnome-tweak-tool

screenshot

@NLKNguyen
NLKNguyen / Open AlertDialog
Created November 1, 2014 19:13
Android/Java snippet
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Are you sure?");
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
// Do something
// ...
@NLKNguyen
NLKNguyen / Open web page via web browser
Last active August 29, 2015 14:08
Android/Java snippet
Intent openBrowserIntent = new Intent(Intent.ACTION_VIEW);
openBrowserIntent.setData(Uri.parse("http://google.com"));
startActivity(openBrowserIntent);