Skip to content

Instantly share code, notes, and snippets.

Vetle Leinonen-Roeim vetler

Block or report user

Report or block vetler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am vetler on github.
  • I am vetler (https://keybase.io/vetler) on keybase.
  • I have a public key whose fingerprint is 2AA4 FC80 97C7 F9C5 10F4 C8AA 79A8 58ED 3FA0 E885

To claim this, I am signing this object:

View git-update.sh
#!/bin/bash
# Update all git directories below current directory or specified directory
# Skips directories that contain a file called .ignore
HIGHLIGHT="\e[01;34m"
NORMAL='\e[00m'
function update {
local d="$1"
if [ -d "$d" ]; then
View gist:83adc044268f01eec5c8
void foo(Function<String, Function<String, Consumer<Long>>> f) {
f.apply("arg1").apply("arg2").accept(1L);
}
foo(a1 -> a2 -> l -> System.out.println("%s %s %d", a1, a2, l);
View gist:4b10d4176223131e1fb4
wget http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.1/sbt-launch.jar
java -jar sbt-launch.jar test
View gist:9736320
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.glassfish.jersey:jersey-bom:pom:2.8-SNAPSHOT
[WARNING] 'parent.relativePath' points at org.glassfish.jersey:project instead of net.java:jvnet-parent, please verify your project structure @ line 47, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
View gist:3491955
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers/>
View gist:1480346
import scala.util.Marshal
import scala.io.Source
import scala.collection.immutable
import java.io._
object Example {
class Foo(m: String) extends scala.Serializable {
val message = m
}
You can’t perform that action at this time.