This file contains hidden or 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
#!/bin/sh | |
SCALAC_CLASSPATH="/home/marko/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/home/marko/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.ja$ | |
exec java -cp $SCALAC_CLASSPATH -Dscala.boot.class.path=$SCALAC_CLASSPATH $@ |
This file contains hidden or 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
class Base { | |
def doit = println ("base") | |
} | |
class Sub1 extends Base { | |
override def doit = println ("sub1") | |
def onething = println("specific to sub1") | |
} | |
class Sub2 extends Base { |
This file contains hidden or 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 eu.rinfrastructures | |
import org.specs._ | |
trait FunctionalMatchers { | |
import org.specs.matcher.Matcher | |
type byNameMatcherFunction [A] = (=> A) => (Boolean, String, String) | |
type byValueMatcherFunction[A] = A => (Boolean, String, String) |
This file contains hidden or 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
case class matchHello(a: String) extends Matcher[String]() { | |
def apply(number: => Int) = { | |
val b = number | |
(b % 2 == 0, b + " is even", b + " is odd") | |
} | |
} |
This file contains hidden or 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
<record rank="2.0285184"><result xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:dr="http://www.driver-repository.eu/namespace/dr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/"><header><dri:objIdentifier>e9c5857d-ced5-4089-8d4a-00c8d198dbaf_UmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZXMvUmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZVR5cGU=::NonAVCreation.filmintezet.hu/MNFA_NonAVCreation_1024</dri:objIdentifier><dri:repositoryId>e9c5857d-ced5-4089-8d4a-00c8d198dbaf_UmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZXMvUmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZVR5cGU=</dri:repositoryId><dri:dateOfCollection>2011-02-10T15:13:12+01:00</dri:dateOfCollection><dri:invalid xmlns:oai="http://www.openarchives.org/OAI/2.0/" value="true"><dri:error term="video" vocabularies="NonAVRelatedToAV, AVCreationRelation" xpath="//*[local-name()='nonavcreation']/*[local-name()='relAvCreation']/*[local-name()='type']" /><dri:error term="poster designer" vocabularies="AgentRelation" xpath="//*[local-name()='relPer |
This file contains hidden or 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
Index: src/main/eu/dnetlib/enabling/ui/server/LookupServlet.java | |
=================================================================== | |
--- src/main/eu/dnetlib/enabling/ui/server/LookupServlet.java (revision 12005) | |
+++ src/main/eu/dnetlib/enabling/ui/server/LookupServlet.java (revision 12238) | |
@@ -310,7 +310,7 @@ | |
+ " for $h in collection('/db/DRIVER/TransformationDSResources/TransformationDSResourceType') " | |
+ " where $h//CONFIGURATION/REPOSITORY_SERVICE_IDENTIFIER = $r//RESOURCE_IDENTIFIER/@value " | |
+ " return concat($h//SINK_METADATA_FORMAT/@name,'|',$h//DATA_SINK) " + ") " | |
- + "return concat($r//RESOURCE_IDENTIFIER/@value,'|',$harv[0],'|',$tran[0]) "; | |
+ + "return concat($r//RESOURCE_IDENTIFIER/@value,'|',$harv[1],'|',$tran[1]) "; |
This file contains hidden or 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 main | |
import ( | |
"os" | |
"fmt" | |
) | |
type Test struct { | |
Msg string | |
} |
This file contains hidden or 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
func main() { | |
var x *int = nil | |
var t interface{} = x | |
fmt.Printf("%t\n", t == nil) // prints "false" | |
} |
This file contains hidden or 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
var something os.Error | |
// ... what is the value of 'something' now? : nil | |
something = ErrorString("wow") |
This file contains hidden or 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
func test() os.Error { | |
err := doSomething() | |
if err != nil { | |
return err | |
} | |
return nil | |
} |