Skip to content

Instantly share code, notes, and snippets.

interface MyAltTextImageTemplate extends SafeHtmlTemplates {
@Template("<img alt=\"{0}\" src=\"{1}\" />")
SafeHtml image(String altText, SafeUri image);
}
@niloc132
niloc132 / changes so far.patch
Created November 26, 2011 19:27
With this patch, it builds cleanly for me
diff --git a/GWThree-lib/pom.xml b/GWThree-lib/pom.xml
index 3493234..d97a622 100755
--- a/GWThree-lib/pom.xml
+++ b/GWThree-lib/pom.xml
@@ -15,21 +15,10 @@
<version>${project.parent.version}</version>
<artifactId>GWThree-lib</artifactId>
- <dependencies><dependency>
- <groupId>${project.parent.groupId}</groupId>
package com.sencha.example.emst.client.widget;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Set;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
@niloc132
niloc132 / excerpt from pom.xml
Created September 27, 2011 18:01
gwt and gwt-m-p vers mismatch
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>
@niloc132
niloc132 / halt.js
Created September 18, 2011 03:57
Quick impl of halting problem contradiction
/*
Starting from http://my.opera.com/Vorlath/blog/2009/06/18/halting-problem-composability-and-compositionality
First, my apologies on reopening what is apparently not a recent blog post - the author might
long since have decided to no longer pursue this, but this was pointed out to me today, and
it looked like an interesting discussion to take part on. Whoops.
Consider any language able to turn a string into executable code: Javascript has an eval
function able to take a string, and execute it. This can be used to turn a block of code into
something which can be executed by simply calling a function.
*/
@niloc132
niloc132 / org.eclipse.wst.common.component
Created June 23, 2011 18:08
example org.eclipse.wst.common.component to get wst and maven to play nice
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="mygwtproj">
<wb-resource deploy-path="/" source-path="/target/mygwtproj-0.1-SNAPSHOT" />
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
<property name="context-root" value="/"/>
<property name="java-output-path" value="/mygwtproj/target/mygwtproj-0.1-SNAPSHOT/WEB-INF/classes"/>
</wb-module>
</project-modules>
@niloc132
niloc132 / gist:981298
Created May 19, 2011 17:38
Larger TreePanel icons draft
.my-large-icon-tree .x-tree3-node-icon {// or .my-large-icon-tree img.x-tree3-node-icon
height: 24px !important;
width: 24px !important;
}