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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/maven-v4_0_0.xsd"> | |
(...) | |
<repositories> | |
<repository> | |
<id>Codehaus repository</id> |
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
var Sample = function() | |
{ | |
var prv = | |
{ | |
name: "", | |
set_name: function(name) | |
{ | |
this.name = name; |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<script src="sample.js" type="text/javascript" charset="utf-8"></script> | |
<title>sample</title> | |
</head> |
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 fr.inria.gforge.amazones.protocols.model | |
import org.junit.runner.RunWith | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.Spec | |
import org.scalatest.matchers.ShouldMatchers | |
@RunWith(classOf[JUnitRunner]) | |
class DirectedGraphSpec extends Spec with ShouldMatchers { |
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
From d0944d060b334922deefcf9afe44177df34ea347 Mon Sep 17 00:00:00 2001 | |
From: jponge <jponge@2ab7d874-170b-494a-809f-82cdd2dfc457> | |
Date: Mon, 12 Oct 2009 08:42:52 +0000 | |
Subject: [PATCH] More efficient and more functional directed graph completion. | |
git-svn-id: https://scm.gforge.inria.fr/svn/amazones/sandbox/amazones-protocols@601 2ab7d874-170b-494a-809f-82cdd2dfc457 | |
--- | |
.../amazones/protocols/model/DirectedGraph.scala | 17 +++++++++-------- | |
1 files changed, 9 insertions(+), 8 deletions(-) | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd"> | |
<bean name="me" class="fr.insalyon.ponge.greeter.Person"> | |
<constructor-arg index="0"> | |
<value>Julien Ponge</value> | |
</constructor-arg> |
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 fr.insalyon.ponge.greeterapp; | |
import java.util.Map; | |
import fr.insalyon.ponge.greeter.Greeter; | |
import fr.insalyon.ponge.greeter.Person; | |
public class GreeterApp { | |
private Person person; |
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
trait GreeterComponent { | |
trait Greeter { | |
def sayHello(who: String): String | |
} | |
def greeter: Greeter | |
} | |
trait MyGreeterComponent extends GreeterComponent { | |
class AussieGreeter extends Greeter { |
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
/* | |
* Just run `groovy Sample.groovy` and let the magic happen. | |
*/ | |
import org.apache.commons.io.FileSystemUtils | |
@Grab(group="commons-io", module="commons-io", version="2.0.1") | |
public class Sample { | |
def run() { |
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 makemeaclass; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; |
OlderNewer