Skip to content

Instantly share code, notes, and snippets.

View aardouin's full-sized avatar

Alexis Ardouin aardouin

  • HelloAsso
  • Bordeaux
View GitHub Profile
@aardouin
aardouin / KtHelpers.kt
Created August 23, 2018 15:49
if let else kotlin
//l'idée était de reproduire ce comportement de swift mais en kotlin
if let a = a {
//a is not null
}else{
//a is null
}
//la solution avec les Standard kotlin :
a?.also{ it ->
//a is not null

Keybase proof

I hereby claim:

  • I am aardouin on github.
  • I am aardouin (https://keybase.io/aardouin) on keybase.
  • I have a public key whose fingerprint is 6EF9 9AD6 26F8 630E 1684 5257 2B91 9B90 09BD 9CE7

To claim this, I am signing this object:

@aardouin
aardouin / 0_reuse_code.js
Created October 14, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console