Skip to content

Instantly share code, notes, and snippets.

View jamescarr's full-sized avatar
🎯
Focusing

James Carr jamescarr

🎯
Focusing
View GitHub Profile
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)
}
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
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
!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)
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService
public interface GeographicalService {
@WebMethod
GeographicalInformation lookupGeography(@WebParam GeographicalRequest type);
}
<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"/>
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;
--------
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">
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;