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 { InjectionToken } from "@angular/core"; | |
export const BUNDLE_URLS = new InjectionToken<string[]>('BUNDLE_URLS'); | |
export interface BundleConfig { | |
bundleName: string; | |
bundleUrl: string; | |
loadOnStartup?: boolean; | |
} |
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
--- | |
doc/apps/cms.pod | 12 ++++++------ | |
doc/apps/smime.pod | 12 ++++++------ | |
doc/ssl/SSL_COMP_add_compression_method.pod | 4 ++-- | |
doc/ssl/SSL_CTX_add_session.pod | 4 ++-- | |
doc/ssl/SSL_CTX_load_verify_locations.pod | 4 ++-- | |
doc/ssl/SSL_CTX_set_client_CA_list.pod | 4 ++-- | |
doc/ssl/SSL_CTX_set_session_id_context.pod | 4 ++-- | |
doc/ssl/SSL_CTX_set_ssl_version.pod | 4 ++-- | |
doc/ssl/SSL_CTX_use_psk_identity_hint.pod | 2 +- |
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
// The primary component has the dependency graph for the authentication classes | |
// and the login activity | |
@Component(modules = [ | |
LoginModule::class, | |
AuthModule::class, | |
LoggedInComponent.InstallModule::class | |
]) | |
interface ApplicationComponent { |
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
val androidModule = module { | |
single<Auth> { | |
AuthManager(context = androidContext()) | |
} | |
single<PlaylistHttpApi> { | |
// Needs the YouTube wrapper class | |
YoutubePlaylistApi() | |
} | |
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 kotlinx.coroutines.* | |
// this will execute on background thread | |
suspend fun getDataFromDatabase() : Array<Int> = withContext(Dispatchers.IO) { | |
delay(1000) | |
println("Thread name inside context: ${Thread.currentThread().name}") | |
Array(10) { i -> i } | |
} | |
fun main(args : Array<String>) = runBlocking { |
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
{ | |
"Create Reducer Template": { | |
"prefix": "rreducer", | |
"body": [ | |
"const INITIAL_STATE = {};", | |
"", | |
"export default (state = INITIAL_STATE, action) => {", | |
" switch (action.type) {", | |
" default:", | |
" return state;", |
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
class ItemBoundaryCallback(private val service: MyApi, | |
private val database: MyDatabase) : PagedList.BoundaryCallback<Item> { | |
val isLoading = false | |
override fun onItemAtEndLoaded(itemAtEnd: Item) { | |
if (isLoading) return | |
isLoading = true | |
networkExecutor.execute { | |
val response = service | |
.getTopAfter(itemAtEnd.name, NETWORK_PAGE_SIZE) |
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
{ | |
"id": 1, | |
"species": { | |
"name": "bulbasaur", | |
"someUrl": "https://pokeapi.co/api/v2/pokemon-species/bulbasaur/", | |
}, | |
"height": 7, | |
"stats": [ | |
{ | |
"power": 10, |