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
function TestUser(){ | |
this.keyMap = {A:65, B:66, ENTER:14, LEFT:37, UP:38, RIGHT:39, DOWN:40}; | |
} | |
TestUser.prototype.pressesKey = function(key){ | |
var e = jQuery.Event("keypress"); | |
e.keyCode = this.keyMap[key.toUpperCase()]; | |
$().trigger(e) | |
} |
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
function sum(n){ | |
arguments.callee.toString = function(){ | |
return sum; | |
} | |
if(!arguments.callee.sum){ | |
arguments.callee.sum=0 | |
} | |
arguments.callee.sum += n | |
var sum = arguments.callee.sum | |
return arguments.callee |
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
function sum(n){ | |
arguments.callee.toString = function(){ | |
return sum; | |
} | |
if(!arguments.callee.sum){ | |
arguments.callee.sum=0 | |
} | |
arguments.callee.sum += n | |
var sum = arguments.callee.sum | |
return arguments.callee |
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
!ENTRY ch.epfl.lamp.sdt.core 4 4 2009-09-12 21:26:07.787 | |
!MESSAGE No message | |
!STACK 0 | |
java.lang.Error | |
at lampion.core.Nodes$class.assert(Nodes.scala:23) | |
at scala.tools.eclipse.Driver$Project.assert(Driver.scala:16) | |
at scala.tools.eclipse.ScalaPlugin$ProjectImpl$$anonfun$outputPath0$1.apply(ScalaPlugin.scala:104) | |
at scala.tools.eclipse.ScalaPlugin$ProjectImpl$$anonfun$outputPath0$1.apply(ScalaPlugin.scala:101) | |
at lampion.eclipse.Plugin$class.check(Plugin.scala:291) | |
at scala.tools.eclipse.Driver.check(Driver.scala:13) |
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
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi |
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 javax.jws.WebMethod; | |
import javax.jws.WebParam; | |
import javax.jws.WebService; | |
@WebService | |
public interface GeographicalService { | |
@WebMethod | |
GeographicalInformation lookupGeography(@WebParam GeographicalRequest type); | |
} |
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
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Body> | |
<ns2:lookupGeographyResponse xmlns:ns2="http://stuff.james-carr.org/"> | |
<return> | |
<dbf> | |
<xop:Include href="cid:073ec720-871c-43ef-a4a1-f19c584e4bfb-1@http%3A%2F%2Fcxf.apache.org%2F" xmlns:xop="http://www.w3.org/2004/08/xop/include"/> | |
</dbf> | |
<result>result</result> | |
<shp> | |
<xop:Include href="cid:073ec720-871c-43ef-a4a1-f19c584e4bfb-2@http%3A%2F%2Fcxf.apache.org%2F" xmlns:xop="http://www.w3.org/2004/08/xop/include"/> |
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 org.jbehave.scenario.PropertyBasedConfiguration; | |
import org.jbehave.scenario.ScenarioRunner; | |
import org.jbehave.scenario.parser.ClasspathScenarioDefiner; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.test.context.ContextConfiguration; | |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
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
-------- | |
Maven version: 2.0.10 | |
Java version: 1.6.0_11 | |
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" | |
-------- | |
pom.xml: | |
-------- | |
<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"> |
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 static java.util.Arrays.asList; | |
import static org.hamcrest.Matchers.hasItem; | |
import static org.hamcrest.Matchers.hasProperty; | |
import static org.hamcrest.Matchers.is; | |
import static org.junit.Assert.assertThat; | |
import java.util.List; | |
import org.junit.Test; |
OlderNewer