To configure this script to automatically execute on file changes, save the XML config in ~/Library/LaunchAgents/dot-files.sync.plist then do:
launchctl load -w ~/Library/LaunchAgents/dot-files.sync.plist
To configure this script to automatically execute on file changes, save the XML config in ~/Library/LaunchAgents/dot-files.sync.plist then do:
launchctl load -w ~/Library/LaunchAgents/dot-files.sync.plist
| package demo | |
| import cats.{Applicative, Functor, Id, Semigroupal, Traverse} | |
| import cats.arrow.FunctionK | |
| /** | |
| * Type-lifting operation to replace the wildcard type (i.e. _). | |
| * | |
| * In some cases we end up with code like: List[Option[_]]. This is | |
| * fine unless you later need to write code in terms of a particular |
| object SameGame { | |
| final case class Position(col: Int, row: Int) | |
| sealed trait Color | |
| case object Green extends Color | |
| case object Blue extends Color | |
| case object Red extends Color | |
| case object Brown extends Color | |
| case object Gray extends Color |
| #!/usr/bin/env bash | |
| # | |
| # Use google's date range and "verbatim" simultaneously | |
| # Paul Phillips <[email protected]> | |
| # | |
| NAME="$(basename "$0")" | |
| read -r -d '' USAGE << EOM | |
| usage: $NAME [-s days] [-e days] [search terms] |
| git rebase "$(git merge-base HEAD master)" -x 'git commit --amend -C HEAD --date="$(date -R)" && sleep 1.05' |
| /** Your task is to reason your way to which compiler | |
| * options which will be passed for each of | |
| * 1) sbt root/compile | |
| * 2) sbt p1/compile | |
| */ | |
| scalacOptions := Seq("-DSBT") | |
| scalacOptions in ThisBuild += "-D0" | |
| scalacOptions in Global += "-D1" |
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x| % sbtx dependencyGraph | |
| ... blah blah ... | |
| [info] *** Welcome to the sbt build definition for Scala! *** | |
| [info] Check README.md for more information. | |
| [error] Not a valid command: dependencyGraph | |
| [error] Not a valid project ID: dependencyGraph | |
| % sbtx -Dplugins=graph dependencyGraph | |
| ... blah blah ... |
This document is about Task, an alternative for Scalaz's Task or Scala's Future.
Note this is work in progress and this document suffered multiple modifications already: