Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
#Getting started with git-svn
git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.
Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion
##Cloning the SVN repository
You need to create a new local copy of the repository with the command
| // Enable component-scanning and auto-configuration with @SpringBootApplication Annotation | |
| // It combines @Configuration + @ComponentScan + @EnableAutoConfiguration | |
| @SpringBootApplication | |
| public class FooApplication { | |
| public static void main(String[] args) { | |
| // Bootstrap the application | |
| SpringApplication.run(FooApplication.class, args); | |
| } | |
| } |
Picking the right architecture = Picking the right battles + Managing trade-offs
| /* | |
| * This class is made available under the Apache License, Version 2.0. | |
| * | |
| * See http://www.apache.org/licenses/LICENSE-2.0.txt | |
| * | |
| * Author: Mark Lee | |
| * | |
| * (C)2013 Caprica Software (http://www.capricasoftware.co.uk) | |
| */ |
| package test | |
| import scala.reflect.runtime.universe._ | |
| object ReflectionHelpers extends ReflectionHelpers | |
| trait ReflectionHelpers { | |
| protected val classLoaderMirror = runtimeMirror(getClass.getClassLoader) |
| /* | |
| Overview | |
| -------- | |
| To run a query using anorm you need to do three things: | |
| 1. Connect to the database (with or without a transaction) | |
| 2. Create an instance of `anorm.SqlQuery` using the `SQL` string interpolator | |
| 3. Call one of the methods on `SqlQuery` to actually run the query |
| import shapeless._ | |
| import scalaz._ | |
| import Scalaz._ | |
| object console extends App { | |
| trait Foo[A] { | |
| type B | |
| def value: B |
| import scala.annotation.{StaticAnnotation, compileTimeOnly} | |
| import scala.language.experimental.macros | |
| import scala.reflect.macros.whitebox.Context | |
| @compileTimeOnly("use macro paradise") | |
| class Extends[T](defaults: Any*) extends StaticAnnotation { | |
| def macroTransform(annottees: Any*): Any = macro Extends.impl | |
| } | |
| object Extends { |
| object BinTreeIterator { | |
| sealed trait Tree | |
| case class Node(v: Int, l: Tree, r: Tree) extends Tree | |
| case object Leaf extends Tree | |
| def toIterator(node: Tree): Iterator[Int] = { | |
| def toStream(n: Tree): Stream[Int] = n match { | |
| case Node(v, l, r) => v #:: toStream(l) #::: toStream(r) | |
| case Leaf => Stream.empty | |
| } |