Skip to content

Instantly share code, notes, and snippets.

View Nimrodda's full-sized avatar

Nimrod Dayan Nimrodda

View GitHub Profile
@Nimrodda
Nimrodda / KodeinDI-environmentScope.kt
Created December 21, 2020 11:54 — forked from SalomonBrys/KodeinDI-environmentScope.kt
Example that shows how to create a scope registry according to a server environment.
import org.kodein.di.*
import org.kodein.di.bindings.Scope
import org.kodein.di.bindings.ScopeRegistry
import org.kodein.di.bindings.StandardScopeRegistry
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.atomic.AtomicReference
enum class Environment(val baseUrl: String) {
DEBUG("http://localhost"),
PROD("https://api.awesome-service.com")
@Nimrodda
Nimrodda / osx_bootstrap.sh
Last active March 11, 2023 15:41 — forked from codeinthehole/osx_bootstrap.sh
Script to install all the required tools needed for Android development on a new MacOS machine
#!/bin/bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Notes:
#
# - If installing full Xcode, it's better to install that first from the app
# store before running the bootstrap script. Otherwise, Homebrew can't access