Skip to content

Instantly share code, notes, and snippets.

View mixpanel-bugs.md
java.lang.SecurityException: Permission denied (missing INTERNET permission?)
	at java.net.InetAddress.lookupHostByName(InetAddress.java:418)
	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
	at java.net.InetAddress.getByName(InetAddress.java:289)
	at com.mixpanel.android.util.HttpService$1.run(HttpService.java:38)
	at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
	at libcore.io.Posix.getaddrinfo(Posix.java)
	at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
View gist:c1bd97828a20b00d045a8e15b46bf8ae
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%
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: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: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 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 backpacking-gears.md
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