Skip to content

Instantly share code, notes, and snippets.

View amanurat's full-sized avatar

Assanai Manurat amanurat

  • Odd-e Thailand
  • Thailand
View GitHub Profile
@amanurat
amanurat / gist:d68bbd4f55d0a73559ad
Created March 28, 2016 08:15 — 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.

@amanurat
amanurat / gist:59167d22d2c8166446c9f1b981caa333
Last active April 8, 2016 13:42 — 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}")
@amanurat
amanurat / gist:d4e992b31d8a33c7c4d2a9aae67b4359
Created April 8, 2016 13:43 — forked from dodyg/gist:5823756
Kotlin Programming Language Cheat Sheet Part 3

#Control Structures

##If statement

Kotlin if statement should look familiar with other language

fun main(args : Array<String>) {
 val total = 10