This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File | |
/** | |
* Advent calendar gift generator | |
* | |
* Generates list of other participants each person have to give a gift to every day. | |
*/ | |
fun main() { | |
println("Pass a list of participants separated by \",\"") | |
val santas: List<String> = readln().split(',') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function readCurrent(){ | |
local current=$(defaults read com.apple.touchbar.agent PresentationModeGlobal) | |
echo "$current" | |
} | |
function setCurrent(){ | |
defaults write com.apple.touchbar.agent PresentationModeGlobal -string $1 | |
pkill "ControlStrip" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function readCurrent(){ | |
local current=$(defaults read com.apple.touchbar.agent PresentationModeGlobal) | |
echo "$current" | |
} | |
function setCurrent(){ | |
defaults write com.apple.touchbar.agent PresentationModeGlobal -string $1 | |
pkill "ControlStrip" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.rules.TestRule; | |
import org.junit.runner.Description; | |
import org.junit.runners.model.Statement; | |
import io.reactivex.android.plugins.RxAndroidPlugins; | |
import io.reactivex.plugins.RxJavaPlugins; | |
import io.reactivex.schedulers.Schedulers; | |
public class RxSchedulersOverrideRule implements TestRule { |