Skip to content

Instantly share code, notes, and snippets.

### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi
Class empty result fromSpecific result newSpecificBuilder result withFilter result
AbstractSeq Iterable[A @scala.annotation.unchecked.uncheckedVariance] Iterable[A @scala.annotation.unchecked.uncheckedVariance] mutable.Builder[A @scala.annotation.unchecked.uncheckedVariance,Iterable[A @scala.annotation.unchecked.uncheckedVariance]] WithFilter[A,[]Seq[]]
StringView View[Char] View[Char] mutable.Builder[Char,View[Char]] WithFilter[Char,[]View[]]
IndexedSeqView View[A] View[A] mutable.Builder[A,View[A]] WithFilter[A,[]View[]]
IndexedSeq IndexedSeq[A] IndexedSeq[A] mutable.Builder[A,IndexedSeq[A]] WithFilter[A,[]IndexedSeq[]]
LinearSeq LinearSeq[A] LinearSeq[A] mutable.Builder[A,LinearSeq[A]] WithFilter[A,[]LinearSeq[]]
Seq Seq[A] Seq[A] mutable.Builder[A,Seq[A]] WithFilter[A,[]Seq[]]
SeqView View[A] View[A] mutable.Builde
@adriaanm
adriaanm / 2.12.7.md
Last active September 21, 2018 10:31

Main highlights of this release:

  • Add Scaladoc markdown tables (#6043)
  • Fix equality of WrappedArray.ofRef (for Spark, #7156)
  • Numerous compiler performance improvements (#7067, #6696, #7147)

Further highlights:

  • Improved Java 9+ support (#7089 ASM 6.2, #7240 Un-deprecate linesIterator)
  • Support @Repeatable Java annotations (#6846)
@adriaanm
adriaanm / para-namers.diff
Created May 8, 2018 13:54
macro paradise namers/expanders diff
--- /tmp/para-namers.scala 2018-05-08 15:52:02.000000000 +0200
+++ src/compiler/scala/tools/nsc/typechecker/MacroAnnotationNamers.scala 2018-05-08 15:52:32.000000000 +0200
@@ -1,28 +1,22 @@
-package org.scalamacros.paradise
-package typechecker
-
-trait Namers {
- self: AnalyzerPlugins =>
+package scala.tools.nsc.typechecker
1 scala.collection.mutable.ArrayBuilder.ofBoolean
1 scala.collection.mutable.BitSet
1 scala.collection.mutable.ImmutableSetAdaptor
1 scala.collection.mutable.LazyBuilder
1 scala.collection.mutable.LinkedHashMap
1 scala.collection.mutable.LinkedHashMap.DefaultKeySet
1 scala.collection.mutable.Map
1 scala.collection.mutable.ObservableBuffer
1 scala.collection.mutable.SortedSet
1 scala.collection.script
@adriaanm
adriaanm / github-tabindex.js
Last active September 11, 2017 22:05
Suppress tabindex for file upload / markdown help on github comment #tampermonkey
// ==UserScript==
// @name Suppress tabindex for file upload / markdown help on github comment
// @namespace http://tampermonkey.net/
// @version 0.3
// @match https://github.com/*
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
(function() {
'use strict';
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
diff --git a/library/library.properties b/library/library.properties
index 83d982c..e59f8c9 100644
--- a/library/library.properties
+++ b/library/library.properties
@@ -1,5 +1,5 @@
-#Mon Apr 10 13:23:59 PDT 2017
-copyright.string=Copyright 2002-2016, LAMP/EPFL and Lightbend, Inc.
-version.number=2.12.1-local-2787b47
-osgi.version.number=2.12.1.v20161205-104509-local-2787b47-2787b47
-maven.version.number=2.12.1-local-2787b47
@adriaanm
adriaanm / scala-library-2.11.8 to 10.diff
Created April 7, 2017 22:09
bytecode diff between 2.11.8/2.11.10 scala library compiled with 2.11.8/2.11.10
diff --git i/library/library.properties w/library/library.properties
index 73a162f..69ba316 100644
--- i/library/library.properties
+++ w/library/library.properties
@@ -1,5 +1,5 @@
-#Fri Apr 07 13:56:50 PDT 2017
-copyright.string=Copyright 2002-2016, LAMP/EPFL
-version.number=2.11.8-20160304-115712-1706a37
-osgi.version.number=2.11.8.v20160304-115712-1706a37
-maven.version.number=2.11.8-SNAPSHOT
@adriaanm
adriaanm / 2.11.8-10.diff
Created April 6, 2017 00:10
for ... ; do javap -v -p "$i" > 2.11.10 ; javap -v -p "/Users/adriaan/git/scala/build-2.11.8/quick/classes/$i" > 2.11.8 ; diff -uwa 2.11.{8,10} ; done
--- 2.11.8 2017-04-05 16:59:30.000000000 -0700
+++ 2.11.10 2017-04-05 16:59:30.000000000 -0700
@@ -1,6 +1,6 @@
-Classfile /Users/adriaan/git/scala/build-2.11.8/quick/classes/compiler/scala/tools/nsc/io/Socket$Box.class
- Last modified Apr 5, 2017; size 2850 bytes
- MD5 checksum 534fd95ad482ddd14a0f81b9008dbc14
+Classfile /Users/adriaan/git/scala/build-2.11.10-snap/quick/classes/compiler/scala/tools/nsc/io/Socket$Box.class
+ Last modified Apr 5, 2017; size 2852 bytes
+ MD5 checksum 387a0dd23fd57b3d7eabf63fddb47745
Compiled from "Socket.scala"