Skip to content

Instantly share code, notes, and snippets.

View clhodapp's full-sized avatar

Chris Hodapp clhodapp

  • San Francisco, California
View GitHub Profile
@clhodapp
clhodapp / slick-issue-189
Created July 30, 2013 15:26
Log from issue 189
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.lifted.TablesInObjectTest.test1 started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 0.587s
[info] Test run started
[info] Test scala.slick.test.lifted.SchemaSupportTest.testSchemaSupport started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 0.071s
[info] Test run started
[Using test database jdbc:h2:mem:test1]
@clhodapp
clhodapp / slick-issue-188
Created July 30, 2013 11:49
Log from issue 188
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.lifted.SchemaSupportTest.testSchemaSupport started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 0.653s
[info] Test run started
[Using test database jdbc:h2:mem:test1]
[info] Test scala.slick.test.direct.QueryableTest.test[0] started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 6.958s
[info] Test run started
@clhodapp
clhodapp / slick-issue-187
Created July 30, 2013 11:19
Log from issue 187
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.memory.DistributedQueryingTest.test1 started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 2.676s
[info] Test run started
[info] Test com.typesafe.slick.testkit.tests.ReducedTest.testQuery[h2mem] started
*** (s.s.c.FuseComprehensions) select(Path , Ref s2)
*** (s.s.c.FuseComprehensions) select(Path , Path s2.s3)
*** (s.s.c.FuseComprehensions) Checking:
@clhodapp
clhodapp / slick-issue-186
Created July 30, 2013 10:57
Log from issue 186
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.memory.DistributedQueryingTest.test1 started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 2.836s
[info] Test run started
[Using test database jdbc:h2:mem:test1]
[info] Test scala.slick.test.jdbc.StatementParametersTest.testExplicit[0] started
[Using test database jdbc:h2:mem:test1]
[info] Test scala.slick.test.jdbc.StatementParametersTest.testImplicit[0] started
package tuple
import language.experimental.macros
import language.dynamics
import scala.reflect.macros.Context
sealed trait ~[+A, +B]
private[tuple] object TupleMacros {
@clhodapp
clhodapp / Example.scala
Last active December 15, 2015 17:39
Most of the macros needed to create a single tuple class that could hold an arbitrary number of items and retain typesafety
// This is an example usage
object Test extends App {
import Macros._
println(countRefs[Int~Int~String~List[Int]~Double]) // prints 2
println(countInts[Int~Int~String~List[Int]~Double]) // prints 2
println(countDoubles[Int~Int~String~List[Int]~Double]) // prints 1
println(whichArray[Int~Int~String~List[Int]~Double]("_0")) // prints Ints
println(whichArray[Int~Int~String~List[Int]~Double]("_2")) // prints References
@clhodapp
clhodapp / hw.cls
Last active December 11, 2015 20:28 — forked from jhwilson/jhwhw.cls
%=====================================================================
% hw.cls
% Provide hw.cls class
%=====================================================================
%=====================================================================
% Identification
%=====================================================================
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{hw}[2013/1/28 Based on Justin Wilson's Homework Class]
@clhodapp
clhodapp / KeyValueParser.scala
Created June 5, 2012 14:59 — forked from chbaranowski/KeyValueParser.scala
Scala RegEx Parser Demo
import scala.util.parsing.combinator.RegexParsers
/**
* Simple parser for a key value string like:
* key01 = Value01 key02=value02 key03 =value03 key04= value04
*
* The parser does not support whitespace in key or values.
*/
object KeyValueParser extends RegexParsers {
@clhodapp
clhodapp / soc2012
Created April 6, 2012 09:10
SOC 2012 Proposal
Name: Christopher Hodapp
Institution: The University of Alabama
Program: Computer Science
Graduation: May 2012
Proposal Title: Dynamic Scala
Email: [email protected]
Phone: +19372199307
About me: I am a 4th (final) year undergraduate Computer Science
student at the University of Alabama. I plan to resume my studies at
@clhodapp
clhodapp / scope-demo.scala
Created March 28, 2012 21:02
Implicit Scope
package P {
class A(val v: Int)
class B(val v: Int)
class C {
def getV(x: B) = x.v
}
}
package object P {
implicit def a2b(x: A) = new B(x.v)