Skip to content

Instantly share code, notes, and snippets.

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.newrelic.marsrover.manager.MissionContext;
import com.newrelic.marsrover.manager.MissionManager;
import com.sun.net.httpserver.HttpExchange;
@matias-nicoletti
matias-nicoletti / gist:e2e00c89f9ce9ecbf5daa55a43af93b5
Created March 14, 2019 11:28 — forked from dodyg/gist:5616605
Kotlin Programming Language Cheat Sheet Part 2

This is a quick guide to Kotlin programming language. The previous part of this guide is here

#Object Oriented

fun main(args : Array<String>) {
  class local (val x : Int)
  
  val y = local(10)
 println("${y.x}")
@matias-nicoletti
matias-nicoletti / gist:03cc93584216dc764282c31971ac1466
Created March 14, 2019 11:27 — 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.