As configured in my dotfiles.
start new:
tmux
start new with session name:
class RealmConfigStore { | |
companion object { | |
private var configMap: MutableMap<Class<out RealmObject>, RealmConfiguration> = HashMap() | |
fun <T : RealmObject> init(modelClass: Class<T>, realmCfg: RealmConfiguration) { | |
if (!configMap.containsKey(modelClass)) { | |
configMap.put(modelClass, realmCfg) | |
} | |
} |
package no.nsb.ombord; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.InetAddress; | |
import java.net.SocketTimeoutException; | |
import java.net.UnknownHostException; | |
import org.apache.http.util.ExceptionUtils; |
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
apply plugin: 'kotlin-kapt' | |
apply plugin: 'realm-android' |
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext.kotlin_version = '1.2.0' | |
ext.ankoVersion = "0.10.2" | |
ext.daggerVersion = "2.11" | |
ext.okhttpVersion = "3.9.0" | |
ext.picassoVersion = "2.5.2" | |
ext.priorityJobQueueVersion = "2.0.1" | |
ext.mockitoVersion = "2.8.47" |
package com.webcubictechnologies.bellmaison.coroutines | |
import android.os.Handler | |
import android.os.Looper | |
import kotlinx.coroutines.experimental.CommonPool | |
import kotlinx.coroutines.experimental.Deferred | |
import kotlinx.coroutines.experimental.async | |
import kotlinx.coroutines.experimental.delay | |
import kotlin.coroutines.experimental.AbstractCoroutineContextElement | |
import kotlin.coroutines.experimental.Continuation |
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext.kotlin_version = '1.2.20' | |
ext.supportVersion = "27.0.2" | |
ext.ankoVersion = "0.10.2" | |
ext.okhttpVersion = "3.9.0" | |
ext.picassoVersion = "2.5.2" | |
ext.retrofitVersion = "2.2.0" | |
ext.gsonVersion = "2.8.2" |
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
apply plugin: 'kotlin-kapt' //optional | |
android { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
-- Cooment -- | |
{- | |
Multiline | |
-} | |
import Data.List | |
import System.IO | |
-- Int -- -2^63 2^63 |
" Install vim-plug | |
if empty(glob('~/.config/nvim/autoload/plug.vim')) | |
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" | |
" Functions | |
" |