(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| // Using Singleton on Kotlin | |
| public object MySingleton { | |
| public fun foo() { | |
| } | |
| } | |
| // And use it on Kotlin | |
| MySingleton.foo() |
| package id.bitcase.ocafe.utility; | |
| import android.bluetooth.BluetoothAdapter; | |
| import android.bluetooth.BluetoothDevice; | |
| import android.bluetooth.BluetoothSocket; | |
| import android.graphics.Bitmap; | |
| import android.os.AsyncTask; | |
| import android.util.Log; | |
| import java.io.IOException; |
| public class SerializationHelper { | |
| public static byte[] serialize(Object object) throws IOException{ | |
| ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); | |
| ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); | |
| // transform object to stream and then to a byte array | |
| objectOutputStream.writeObject(object); | |
| objectOutputStream.flush(); | |
| objectOutputStream.close(); | |
| return byteArrayOutputStream.toByteArray(); | |
| } |
| { | |
| "nama": "Yudi Setiawan", | |
| "hobi": [ | |
| "menulis", | |
| "membaca", | |
| "bersepeda" | |
| ], | |
| "usia": 23 | |
| } |
| { | |
| "nama": "Yudi Setiawan", | |
| "hobi": [ | |
| "menulis", | |
| "membaca", | |
| "bersepeda" | |
| ], | |
| "usia": 23, | |
| "orang_tua": { | |
| "ibu": { |
| [ | |
| { | |
| "string": "Ini String", | |
| "number": 1, | |
| "boolean": false, | |
| "array": [] | |
| } | |
| ] |
| { | |
| "nama_depan": "Yudi", | |
| "nama_belakang": "Setiawan" | |
| } |
| { | |
| "long": 10, | |
| "double": 10.5 | |
| } |
| { | |
| "isMan": true, | |
| "isWoman": false | |
| } |