Skip to content

Instantly share code, notes, and snippets.

View SkPaint.scala
package typings.canvaskitWasm.mod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@js.native
trait SkPaint extends SkObject[SkPaint] {
def getBlendMode(): SkBlendMode = js.native
def getColor(): SkColor = js.native
View editor.kt
package molikto.apps.ui
import androidx.compose.*
import androidx.ui.core.Modifier
import androidx.ui.foundation.Text
import androidx.ui.foundation.TextField
import androidx.ui.layout.Column
import androidx.ui.layout.Row
import androidx.ui.layout.fillMaxHeight
import androidx.ui.material.Scaffold
View GraphemeSplitter.scala
package util
import scala.collection.mutable.ArrayBuffer
object GraphemeSplitter {
val CR = 0
val LF = 1
val Control = 2
val Extend = 3
val Regional_Indicator = 4
View backpacking-gears.md
View android-sharedpreference-benchmark
1th, 100th, 200th, ... insert speed (including db creation and shared preference file creation)
sqlite 51, 7, 7, 10, 6, 9, 12, 7, 7, 8
shared preference 5, 14, 12, 16, 23, 26, 31, 32, 37, 34
View gist:cecb99cb6e6ec53822a37f7c9755ec2f
This file has been truncated, but you can view the full file.
Jan 5 11:15:57 bogon bootlog[0]: BOOT_TIME 1483586157 495665
Jan 7 22:19:38 bogon syslogd[52662]: Configuration Notice:
ASL Module "com.apple.AddressBookLegacy" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Jan 7 22:19:38 bogon syslogd[52662]: Configuration Notice:
ASL Module "com.apple.appinstallation" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Jan 7 22:19:38 bogon syslogd[52662]: Configuration Notice:
ASL Module "com.apple.clouddocs" claims selected messages.
View gist:452faa144bedc4a3f2a2767c756d7a9f
def (a: type) prop :=
(a1 a2: a) => a1 = a2
def (a: type) set :=
(a1 a2: a) => (a1 = a2) prop
under (s: type) {
def binary_relation :=
View gist:22c43fef168e503b078687a1572f53b5
2016-08-16 (-inf, 0] 28250 77.3%
2016-08-16 [0,87272) 1079 3.0%
2016-08-16 [87272,174544) 529 1.4%
2016-08-16 (86400000,inf) 462 1.3%
2016-08-16 [174544,261816) 184 0.5%
2016-08-16 [261816,349088) 144 0.4%
2016-08-16 [436360,523632) 126 0.3%
2016-08-16 [349088,436360) 126 0.3%
2016-08-16 [698176,785448) 97 0.3%
2016-08-16 [610904,698176) 88 0.2%
View gist:0827c1a17a2d7b23986278498a2356f7
2016-08-16 (-inf, 0] 28250 77.3%
2016-08-16 [0,87272) 1079 3.0%
2016-08-16 [87272,174544) 529 1.4%
2016-08-16 (86400000,inf) 462 1.3%
2016-08-16 [174544,261816) 184 0.5%
2016-08-16 [261816,349088) 144 0.4%
2016-08-16 [436360,523632) 126 0.3%
2016-08-16 [349088,436360) 126 0.3%
2016-08-16 [698176,785448) 97 0.3%
2016-08-16 [610904,698176) 88 0.2%