Skip to content

Instantly share code, notes, and snippets.

View odd's full-sized avatar
💭
Functioning

Odd Möller odd

💭
Functioning
View GitHub Profile
[
{
"jmhVersion" : "1.21",
"benchmark" : "MemoryFootprint",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre",
"jvmArgs" : [],
[
{
"jmhVersion" : "1.21",
"benchmark" : "collection.benchmark.immutable.SeqMapBenchmark.access_apply",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
@odd
odd / memory-footprint-2018-12-17T14-42-43.100Z.json
Created December 17, 2018 18:00
collection-benchmark-seqmaps-memory
[
{
"jmhVersion" : "1.21",
"benchmark" : "MemoryFootprint",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre",
"jvmArgs" : [],
@odd
odd / jmh-result.json
Last active December 17, 2018 17:55
collection-benchmark-seqmaps-time
[
{
"jmhVersion" : "1.21",
"benchmark" : "collection.benchmark.ops.immutable.SeqMapBenchmark.transform_zipWithIndex",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
@odd
odd / collection-strawman-no-cross.patch
Last active January 4, 2018 14:41
Patch to disable cross compile for scala/collection-strawman (to make the project work in IDEA)
diff --git a/build.sbt b/build.sbt
index effe9..e3f84 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,5 +1,5 @@
import com.typesafe.sbt.pgp.PgpKeys.publishSigned
-import org.scalajs.sbtplugin.cross.CrossProject
+//import org.scalajs.sbtplugin.cross.CrossProject
// Convenient setting that allows writing `set scalaVersion := dotty.value` in sbt shell to switch from Scala to Dotty
@odd
odd / dropbox-resolve.sh
Last active March 1, 2017 12:03 — forked from wilson428/dropbox.sh
Fix Dropbox conflicts automatically.
#!/bin/bash
#Modified from https://gist.github.com/wilson428/40c0b8bf7ecba5a301f6
#Added modifications from https://gist.github.com/nbartzokas/416400824ef2dcf4248e4c75c2d25cfa
#Thx, http://stackoverflow.com/questions/20723868/batch-rename-dropbox-conflict-files
getopts "r" replace && shift
folder=${1:-$(pwd)}
backup=${2:-$(pwd).backup}
@odd
odd / LocalExecutor.scala
Last active May 25, 2019 15:27
LocalExecutor allows executing callback code locally inside an actor (where the actor state can be safely modified)
import akka.actor._
import scala.concurrent.duration.Duration
import scala.concurrent.{CanAwait, ExecutionContext, Future, TimeoutException}
import scala.util.{Failure, Success, Try}
object LocalExecutor {
private case class Execute(runnable: Try[Runnable])
private class LocalExecutionContext(target: ActorRef) extends ExecutionContext {
override def execute(r: Runnable) = target ! Execute(Try(r))