Skip to content

Instantly share code, notes, and snippets.

View starkej2's full-sized avatar
Using significant energy

Jeffrey Starke starkej2

Using significant energy
View GitHub Profile
@starkej2
starkej2 / osx-machine-setup.sh
Last active August 1, 2023 17:58
Installs the software I use on OSX
#!/bin/sh
# ------------------------- GENERAL ------------------------- #
# install xcode command line tools
xcode-select —install
# install and setup homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/jstarke/.zprofile
@starkej2
starkej2 / code-review-emoji-legend.md
Last active May 9, 2022 20:33
Code Review Emoji
Prefix Emoji Meaning
Required: :exclamation: A concern that must be addressed before merging.
Question: :question: A question that must be answered before merging.
Nitpick: ⛏️ :pick: An optional, low priority change request.
Idea: 💡 :bulb: An idea to consider for this PR or a future one.
# clear app data
adb shell pm clear <app-package-name>
# launch app
adb shell am start -n <app-package-name>/<qualified-launch-activity-class>
@starkej2
starkej2 / RxImmediateSchedulerRule.kt
Last active December 30, 2021 18:33
RxJava Immediate Scheduler Test Rule
/**
* Replaces the default RxJava schedulers with a synchronous one.
*/
class RxImmediateSchedulerRule : TestRule {
private val immediateScheduler = object : Scheduler() {
@NonNull
override fun scheduleDirect(run: Runnable, delay: Long, unit: TimeUnit): Disposable {
// Hack to prevent stack overflows in unit tests when scheduling with a delay;
return super.scheduleDirect(run, 0, unit)
}