Skip to content

Instantly share code, notes, and snippets.

joielechong /
Created July 20, 2020 04:24 — forked from jewelsea/
JavaFX sample to display the Gettysburg address in a titled border.
import javafx.animation.FadeTransition;
import javafx.application.Application;
import javafx.beans.value.*;
import javafx.event.*;
import javafx.geometry.*;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.effect.*;
import javafx.scene.image.*;
joielechong / 16al_header_sm.jpg
Created July 20, 2020 04:24 — forked from thirdy/16al_header_sm.jpg
JavaFX titled border example standalone version of
joielechong /
Created August 28, 2018 09:08 — forked from StefMa/
SearchView suggestions over network

SearchView suggestions over network

What is it?

This is a simple how to make a network request with the SearchView implemented in a Toolbar.


The documentation for a Search Interface says that you can't make a a request over the network. You can only make a SearchView via recent searches or over a ContentProvider. I want to demonstrate how to make network request with the searchview.

joielechong /
Created July 2, 2017 06:39 — forked from wendal/
package org.nutz.lang.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
joielechong /
Created January 24, 2017 11:37 — forked from eneim/
A custom TabLayout with badge support for Tabs
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
joielechong / hosts
Last active February 2, 2022 23:29 — forked from eyecatchup/hosts
Disable Skype ads: 1.) Add hosts to your hosts file 2.) Flush DNS resolver cache (ipconfig /flushdns)
# On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts
# Block Skype ads # On skype 7.* * # On skype 7.* # On skype 7.* * # On skype 7.* # On skype 7.* # On skype 7.*
joielechong /
Created August 1, 2016 02:45 — forked from joshdholtz/
Android Google Maps V2 - MapView in XML
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);
joielechong /
Created January 25, 2016 20:29
Contoh program pada artikel "Menggunakan Array pada Java"
public class ContohAray {
// Deklarasi variable array tanpa ukuran
static int[] arrayInt;
// deklarasi variable array dengan ukuran
static String[] arrayString = new String[5];
// deklarasi variable array dengan nilainya langsung
joielechong /
Created November 9, 2015 04:39
Signing Android apk without putting keystore info in build.gradle