Skip to content

Instantly share code, notes, and snippets.

Jason lemnik

Block or report user

Report or block lemnik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lemnik
lemnik / docker-clear.sh
Created Nov 23, 2018
Clear all Docker containers and volumes
View docker-clear.sh
#!/bin/bash
docker container rm `docker container ls -a | cut -d " " -f1 | tail -n +2`; docker volume prune -f
@lemnik
lemnik / InstanceFunctionReferences.kt
Created Oct 11, 2018
Using instance-function references in Kotlin
View InstanceFunctionReferences.kt
// https://pl.kotl.in/rJgInO29m
class MyClass {
private fun doThing1(name: String) =
println("Thing1 says: Hello $name")
private fun doThing2(name: String) =
println("Thing2 says: Hi $name!")
private fun fail(name: String) =
You can’t perform that action at this time.