Skip to content

Instantly share code, notes, and snippets.

@nhalase
nhalase / script.ps1
Created October 14, 2020 16:57
Environment Setup - Windows - PowerShell - Allow AllSigned Scripts to execute without confirmation prompts
Set-ExecutionPolicy AllSigned -Scope CurrentUser -Force
# -ExecutionPolicy - Specifies the execution policy. If there are no Group Policies and each scope's execution policy is set to Undefined, then Restricted becomes the effective policy for all users.
## AllSigned - Requires that all scripts and configuration files are signed by a trusted publisher, including scripts written on the local computer.
# -Scope - Specifies the scope that is affected by an execution policy. The default scope is LocalMachine.
## CurrentUser - Affects only the current user.
# -Force - Suppresses all the confirmation prompts. Use caution with this parameter to avoid unexpected results.
@nhalase
nhalase / CohortsNavigationScreen.kt
Last active January 10, 2020 06:53
Example of possible ListWidget bug/limitation in Moko Widgets.
import dev.icerock.moko.widgets.screen.NavigationScreen
import dev.icerock.moko.widgets.screen.ScreenFactory
import kotlin.reflect.KClass
class CohortsNavigationScreen(
screenFactory: ScreenFactory
) : NavigationScreen<CohortsScreen>(screenFactory), CohortsScreen.Parent, CohortScreen.Parent {
override val rootScreen: KClass<out CohortsScreen>
get() = CohortsScreen::class