Skip to content

Instantly share code, notes, and snippets.

View OrdonTeam's full-sized avatar

Karol Kowalski OrdonTeam

  • Google Switzerland GmbH
  • Zurich, Switzerland
View GitHub Profile
@OrdonTeam
OrdonTeam / bad-api.md
Created December 8, 2017 10:19
How api should look like

How api should look like

Rest and http

There are some guide lines what should be done and what should not.

Last example I encountered was mixing query param with multipart body. It is even forbidden in most popular iOS network library.

Accept application/json

When creating api application/json content type should be default.

0x9d0275509e375109D27ca1B8B8D3F5Db00488019
0x4962a8a2af62F387Fd3D0142e7c02fbb9D68e222
downloadBytesProgerssObservable
.map{ it * 100 / fileSizeInBytes }
.subscribe(RxProgressBar.progress(progressBarView))
@OrdonTeam
OrdonTeam / QSortSpec.groovy
Created October 20, 2015 22:47
Qucick sort algorithm using @tailrecursive - Task given by Venkat Subramanian on WJUG 20.11.2016
package com.ordonteam
import groovy.transform.TailRecursive
import spock.lang.Specification
import spock.lang.Unroll
class QSortSpec extends Specification {
@Unroll
def "Should sort all permutations"() {