I hereby claim:
- I am aembleton on github.
- I am hiker (https://keybase.io/hiker) on keybase.
- I have a public key ASDch2xpzBE1fntduHm0Jv_iY4WKDWu_2LQ8_oCLXperbAo
To claim this, I am signing this object:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* to hide the native tabs */ | |
#TabsToolbar { | |
visibility: collapse; | |
} | |
/* to hide the sidebar header */ | |
#sidebar-header { | |
visibility: collapse; |
/* | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
*/ | |
:root { | |
--grey-10: #f9f9fa; | |
--grey-40: #b1b1b3; | |
--grey-90: #0c0c0d; |
#mai-rtmenu { | |
display: none; | |
} | |
#header { | |
display: none; | |
} | |
#main #mai-container #mai-content { | |
width: 100%; |
#mai-rtmenu { | |
display: none; | |
} | |
#header { | |
display: none; | |
} | |
#main #mai-container #mai-content { | |
width: 100%; |
public fun <I,O> List<I>.pmap(transform: (I) -> O): List<O> { | |
val asyncOperations = this.map{wrapTransorm(transform, it)} | |
return runBlocking { asyncOperations.map { it.await() } } | |
} | |
fun <I,O> wrapTransorm(transform: (I) -> O, input:I) = async(CommonPool) {transform(input)} |
fun List<String>.mapWith(split:String) = this.map { | |
val components = it.split(split, limit=2) | |
components[0].trim() to components[1].trim() | |
}.toMap() |
fun <V> Map<String,V>.startsWith(search:String):V? { | |
val reducedMap = this.toSortedMap().tailMap(search) | |
if (!reducedMap.isEmpty() && reducedMap.firstKey().startsWith(search)) { | |
return reducedMap.values.first() | |
} | |
return null | |
} |
public inline fun <T,R> Iterator<T>.map(transform: (T) -> R) : List<R> { | |
val list = ArrayList<R>() | |
this.forEach { list.add(transform(it)) } | |
return list | |
} |
I hereby claim:
To claim this, I am signing this object: