Skip to content

Instantly share code, notes, and snippets.

View coacoas's full-sized avatar

Bill Carlson coacoas

View GitHub Profile
@coacoas
coacoas / keybase.md
Created October 18, 2017 19:50
keybase.md

Keybase proof

I hereby claim:

  • I am coacoas on github.
  • I am coacoas (https://keybase.io/coacoas) on keybase.
  • I have a public key ASCjur32Gp0zeY-RamPKWJPqA-cgU_0y9zp7NnORz__W0Qo

To claim this, I am signing this object:

@coacoas
coacoas / .ensime
Created March 2, 2016 20:23
ensime-gradle multi-project subprojects
(:root-dir "/home/bcarlson/Projects/ensime-pr-test"
:cache-dir "/home/bcarlson/Projects/ensime-pr-test/.ensime_cache.d"
:name "ensime-pr-test"
:java-home "/usr/lib/jvm/java-8-oracle"
:formatting-prefs nil
:scala-version "2.11.7"
:compiler-args nil
:subprojects ((:name "ensime-pr-test"
:source-roots ("/home/bcarlson/Projects/ensime-pr-test/src/main/resources" "/home/bcarlson/Projects/ensime-pr-test/src/main/java" "/home/bcarlson/Projects/ensime-pr-test/src/test/resources" "/home/bcarlson/Projects/ensime-pr-test/src/test/java")
:reference-source-roots nil
@coacoas
coacoas / Example.scala
Created May 15, 2014 19:19
TypeClass in Scala
/*
* Copyright (c) 2001, 2014, Object Innovation, Inc. All Rights Reserved.
*
* This software is published under the terms of the Object Innovation License
* version 1.1, a copy of which has been included with this distribution in the
* LICENSE.TXT file. Learn more at http://www.bridgegatetei.com
*/
package com.oidev.bridgegate
@coacoas
coacoas / OptionExample.java
Created June 28, 2012 21:00 — forked from ClintCombs/OptionExample.java
Using Scala's Option from Java
package net.ccombs.scalaFromJava;
import scala.Option;
import scala.Some;
import scala.runtime.AbstractFunction0;
/**
* OptionExample
*/
public class OptionExample {
@coacoas
coacoas / CollectionTest.java
Created June 28, 2012 20:22
Using Scala collections from Java
package org.example;
import scala.Function1;
import scala.collection.generic.CanBuildFrom;
import scala.collection.immutable.List;
import scala.collection.immutable.List$;
import scala.collection.immutable.Vector;
import scala.collection.immutable.Vector$;
import scala.collection.mutable.Builder;
@coacoas
coacoas / OptionTest.java
Created June 28, 2012 18:42
Scala's Option from Java
package org.example;
import scala.Function0;
import scala.Function1;
import scala.Option;
import scala.Some;
import scala.runtime.AbstractFunction0;
import scala.runtime.AbstractFunction1;
public class OptionTest {