Skip to content

Instantly share code, notes, and snippets.

View syntax-tee's full-sized avatar
🎯
Focusing

Taiye Ogunlade syntax-tee

🎯
Focusing
View GitHub Profile
@AniketSK
AniketSK / CoroutineTestRule.kt
Last active April 14, 2023 18:56
A test rule to allow testing coroutines that use the main dispatcher. Without this you'd run into "java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used"
package com.aniketkadam.sharevideoshortcut
import org.junit.rules.TestWatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.TestCoroutineDispatcher
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.setMain
import org.junit.runner.Description
@funmia
funmia / design-patterns.md
Created January 24, 2020 12:06
Design patterns - rayweinderlich

Design patterns - rayweinderlich

Types of design patterns

  1. Structural patterns describe how objects are composed to form larger subsystems. Examples of structural patterns are:
  1. Behavioral patterns describe how objects communicate with each other.
@funmia
funmia / ios-interview-resources.md
Last active October 12, 2025 19:55
General iOS, CS questions and interview prep resources.
@sreeragh-ar
sreeragh-ar / python_quick_tips.ipynb
Created June 23, 2021 14:07
Python_quick_tips.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.