Skip to content

Instantly share code, notes, and snippets.

@intari
intari / gist:f9d78c2460570c5db041b06459b24ba8
Last active November 2, 2017 05:25 — 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 1.1.50

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.

{
"odata.metadata": "http://37.29.76.15:8080/Data.svc/$metadata#SalesByDate",
"value": [
{
"Period": "201804",
"PERNR": "99000005",
"Date": "2018-03-24T00:00:00",
"StoreID": "K393",
"PeriodDesc": "апрель 2018",
"PersonalHours": 0,
@intari
intari / OkHttp3Stack.java
Last active April 22, 2022 02:34
OkHttp3Stack.java with Stetho support
package com.viorsan.test.android.Utils;
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Circle Internet Financial
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell