Skip to content

Instantly share code, notes, and snippets.

View papapana's full-sized avatar

Vassilis Papapanagiotou papapana

View GitHub Profile
@papapana
papapana / check.groovy
Created November 14, 2016 11:33
Check if key exists in map in Groovy
filter = [:]
key = 'example'
if (filter.containsKey(key)) {
// do if the key is contained
// e.g. filter[key] << 'hello_again'
} else {
// do if key is not contained
// e.g. filter[key] = ['hello']
}

Keybase proof

I hereby claim:

  • I am papapana on github.
  • I am vassilis_ai (https://keybase.io/vassilis_ai) on keybase.
  • I have a public key ASBdEva_N6qnPpu-HZr3Zzm8wCpHIu2wjfTyV7b1e-5GYAo

To claim this, I am signing this object:

@papapana
papapana / macos_boot_keys.md
Created October 30, 2021 21:25 — forked from cetinajero/macos_boot_keys.md
macOS Boot combination keys and bootable USB commands