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
│ pom.xml | |
│ | |
├───src | |
│ ├───main | |
│ │ └───antlr3 | |
│ │ └───com | |
│ │ └───example | |
│ │ └───dsi_ms | |
│ │ └───tql |
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
% Initial Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org> | |
% Copyright (c) 2008, Gael Varoquaux | |
% License: BSD Style. | |
% Author : Alexis Guéganno | |
% Author : Jonathan Winandy | |
%%%%%%%%% RST2NEW-LATEX STYLESHEET %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
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
[14:34] <Benjamin_V> Raffa: Je trouve pas le nom des modules, c'est vraiment bizarre | |
[14:34] <Niicoolaas> metrokid: Hum ? | |
[14:34] <Benjamin_V> Raffa: C'est censé être des add-ons pour ArchiMate ? | |
[14:34] <bthorent> \o_ | |
[14:34] <bthorent> \o_ | |
[14:34] <bthorent> \o/ | |
[14:34] <bthorent> _o/ | |
[14:34] <beinje> \o_ | |
[14:34] <beinje> \o/ | |
[14:35] <beinje> _o/ |
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
object Control { | |
def using[Closeable <: {def close(): Unit}, B](closeable: Closeable)(useCloseable: Closeable => B): B = | |
try { | |
useCloseable(closeable) | |
} finally { | |
closeable.close() | |
} | |
} |
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
abstract sealed class C(a: A, b: B) extends Product2[A, B] { | |
def _1 = a | |
def _2 = b | |
} | |
case class D(a: A, b:B, e:E) extends C(a,b) | |
object D extends MyTrait |
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
// HOW TO READ 2 LINES FROM A FILE IN SCALA. | |
// with an Iteratee | |
getFileLines(new File("/somefile/.txt")) (head >>= ((b1:Option[String]) => head.map(b2 => (b1,b2)))). | |
map(_.run). | |
unsafePerformIO | |
// standard |
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
scalaVersion := "2.9.0-1" | |
libraryDependencies ++= Seq( "org.scalaz" %% "scalaz-core" % "6.0.1") |
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 sbt._ | |
// à mettre dans ~/.sbt/plugins/project/ | |
object MyPlugins extends Build { | |
lazy val root = Project("root", file(".")) dependsOn ( | |
uri("https://github.com/steppenwells/sbt-sh.git"), | |
uri("https://github.com/eed3si9n/sbt-inspectr.git") | |
) |
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 imaptest | |
import javax.mail._ | |
object ImapTest extends App { | |
val props = System.getProperties() | |
props.setProperty("mail.store.protocol", "imaps") |
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
Runar Bjarnason | |
11 oct. | |
Re: [scala-debate] Re: questioning FP | |
On Tuesday, October 11, 2011 11:26:43 AM UTC-4, Ittay Dror wrote: | |
> Sure, then fetchUser is mostly non-IO, but needs to return IO[User]. Similarly, the functions that use fetchUser will | |
> also need to return IO[Something]. So a small implementation detail in a function can change its signature and forces | |
> it to be used differently (inside a for comprehension). |
OlderNewer