| | Presentation | | ---- | ------------- | --------------------- | | ◻️ | Functor, Apply, Applicative, Bind and Monad by Oliver Daff | | ◻️ | Functional Programming Fundamentals by Dr. Erik Meijer, parts: 1, 2, 3, 4, 5, 6, 7,8, 9 | | ◻️ | Programming with algebras by Bartosz Milewski | | ◻️ | Fun with categories by Bartosz Milewski | | ◻️ | [Catego
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Given the following file, create a simple Scala programming example | |
* that would parse and then randomly output a quote. | |
* (http://www.coverfire.com/files/quotes.txt) | |
*/ | |
import scala.io.Source | |
import scala.util.Random | |
case class QuotesForgery(quotes: List[String] = List(), val workspace: List[String] = List()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A: | |
trait DoValidator { | |
def validate(input:String): Validation = ... | |
} | |
trait Doer extends DoValidator { | |
def do(input: String) = validate(input) match | |
case Success => .... | |
case Failuer => .... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global credential.helper 'cache --timeout=3600' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
Content of this gist
was move to repo https://github.com/rabbitonweb/emacs_ensime_guide (for you to use and fork :) )
Everything was moved to https://github.com/rabbitonweb/papers_i_love
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Not Connector related | |
flattenArrayWithUnflattened.test - never terminates | |
caseVariations.test - see #1700 | |
caseWithGroup.test - works only for CO, according to Emrys "Nightmarish QScript (just enormous)" | |
doubleFlattenWithIntervening - same as marklogic "doesn't preserve the fact that the first element doesn't have the req field, so missing NA in result" | |
null/nullTestExprs - same as marklogic, JVM OOM error | |
null/nullTestExprsWithMissing - same as marklogic, JVM OOM error | |
symmetricNonJsJoinCondition - same as marklogic, QScript never finishes | |
temporal/datePartsConverted.test - never terminates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rss | |
import scalaz._, Scalaz._ | |
case class Fix[F[_]](unfix: F[Fix[F]]) | |
object Fix { | |
type Algebra[F[_], A] = F[A] => A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalaz.{Free => _, _}, Scalaz._ | |
object Attempt1 { | |
sealed trait Free[S[_], A] | |
case class Done[S[_], A](a: A) extends Free[S, A] | |
case class Roll[S[_], A](k: S[Free[S, A]]) extends Free[S, A] | |
object Free { |
OlderNewer