README is empty
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
//no vars on this stuff - lets me customize the window/document objects | |
document = jsdom(); | |
window = document.createWindow(); | |
window.hasBigEars = true; | |
//this is/was client side js that expects certain window properties to be there - eg, hasBigEars | |
var app = require('./js-that-loves-big-ears.js'); | |
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
public static native void log(String text) /*-{ | |
if ($wnd.console && $wnd.console.log) { | |
$wnd.console.log(text); | |
} | |
}-*/; |
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 java.text; | |
import com.google.gwt.i18n.client.NumberFormat; | |
public class DecimalFormat { | |
private NumberFormat nf; | |
public DecimalFormat(String pattern) { | |
this.nf = NumberFormat.getFormat(pattern); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> | |
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | |
<listEntry value="/Vertx-Server"/> | |
</listAttribute> | |
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | |
<listEntry value="4"/> | |
</listAttribute> | |
<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/> | |
<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="true"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;javaProject name=&quot;GLWT&quot;/&gt;&#10;" typeId="org.eclipse.jdt.launc |
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
ClientGetter playClientGetter = new ClientGetter() { | |
private int playPort; | |
private String playHost; | |
{ | |
String portString = System.getenv("PLAY_PORT"); | |
if (portString == null) | |
portString = "9000"; | |
playPort = Integer.parseInt(portString); | |
playHost = System.getenv("PLAY_HOST"); |
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
public class Log { | |
/* | |
* type - is "INFO", "DEBUG", "ERROR" etc | |
* object - is an "id" of the person calling it. as a convention, I use 'this' unless it is a static method, then I pass in the class | |
* msg - the log message | |
*/ | |
public static void log(String type, Object object, String msg) { |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<project name="glwt" default="jar" basedir="."> | |
<property name="gwt.sdk" location="/home/tom/bin/gwt" /> | |
<property name="dust.version" location="1.2.6" /> | |
<property name="dust.path" location="/home/tom/code/javascript/dustjs" /> | |
<property name="dust.path.src" location="${dust.path}/dist" /> | |
<property name="dust.path.dst" location="src/glwt/dust/client/js" /> |
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
public interface Promise<T> { | |
Promise<T> resolve(T value); | |
Promise<T> resolve(Promise<T> promise); | |
Promise<Throwable> reject(Throwable e); | |
Promise<T> then(CallbackFunction onResolved); |
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
Handler<Throwable> onError = new Handler<Throwable>(Throwable.class) { | |
@Override | |
public Throwable handle(Throwable value) { | |
value.printStackTrace(); | |
return value; | |
} | |
}; | |