I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
package draft | |
import arrow.* | |
import arrow.core.* | |
import arrow.data.* | |
import arrow.syntax.option.* | |
import arrow.typeclasses.* | |
import arrow.instances.* | |
typealias Stack = Option<Nel<String>> |
/* | |
from https://golang.org/src/crypto/tls/generate_cert.go | |
*/ | |
// Copyright 2009 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// +build ignore |
empty |
I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
var env = require('node-env-file'); | |
var Github = require('github-api'); | |
var Q = require('q'); | |
env(__dirname + '/.env'); | |
var github = new Github({ | |
username: "evantill", | |
password: process.env.GITHUB_PASSWORD, | |
auth: "basic" |
//scalaVersion := "2.10.3" | |
object CompileError { | |
import collection.immutable.Queue | |
type IntQueue = Queue[Int] | |
val IntQueue = Queue | |
val q: IntQueue = IntQueue.empty[Int] | |
def add(elem:Int):IntQueue = q.enqueue(elem) |
package scalaio | |
import shapeless._, poly._ | |
object list extends (Id ~> List) { | |
def apply[T](t : T) = List(t) | |
} | |
object headOption extends (List ~> Option) { | |
def apply[T](l : List[T]) = l.headOption |
trait SprayContribForRequestTransformer { | |
object HttpRequestBuilderLens { | |
val queryLens = new Lens[Uri, Query] { | |
def get(c: Uri): Query = c.query | |
def set(c: Uri)(f: Query): Uri = c.copy(query = f) | |
} | |
val uriLens = new Lens[HttpRequest, Uri] { |
/** | |
* Created with IntelliJ IDEA. | |
* User: evantill | |
* Date: 01/07/13 | |
* Time: 12:22 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
object PointBarre extends App { | |
case class Point2D(x: Int, y: Int) { |
package puzzle | |
import scalaz._ | |
import Scalaz._ | |
import scala.language.higherKinds | |
/** | |
* Created with IntelliJ IDEA. | |
* User: evantill | |
* Date: 11/06/13 |