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" ?> | |
<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 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 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; | |
} | |
}; | |
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 vertx = require("vertx.js") | |
var console = require('vertx/console'); | |
console.log('module ' + JSON.stringify(module)); | |
var dust; | |
var x = function(){ | |
var module = undefined; |
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 bug; | |
import com.google.gwt.core.client.GWT; | |
public class FormatBug { | |
public boolean testVar; | |
public static void testMethodString(String s) { | |
GWT.log(s); |
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 editor = ace.edit("editor-container"); | |
editor.setTheme("ace/theme/monokai"); | |
if (!glwt.ace){ | |
glwt.ace = { sessions : {} }; | |
} | |
var oldSession = glwt.ace.sessions["{template.name}"]; | |
var src = "{template.source|s|j}"; | |
if (oldSession){ | |
editor.setSession(oldSession); |
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 glwt.dust.rebind; | |
import java.io.PrintWriter; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Set; | |
import com.google.gwt.core.ext.CachedGeneratorResult; |
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
//supports dot path resolution, function eval, and searching global paths | |
Context.prototype.getPath = function(cur, down) { | |
var ctx = this.stack, | |
len = down.length, | |
tail = cur ? undefined : this.stack.tail; | |
if (cur && len === 0) return ctx.head; | |
ctx = ctx.head; | |
var i = 0; |
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
03:09:02 PM - atomatom: is it possible to: a) watch a directory of files to determine if a generator should be re-run (eg, say a generator that includes all files in a directory) or b) force it to re-generate the Impl code each time? | |
03:10:34 PM - icfantv has left the room (Quit: Leaving.). | |
03:11:28 PM - stefan_ [~stefan@89.204.155.184] entered the room. | |
03:13:25 PM - Twiner [~Twiner@c-75-68-119-219.hsd1.nh.comcast.net] entered the room. | |
03:20:37 PM - xjrn: if intellij is any lesson, the file-watcher is platform specific | |
03:21:19 PM - xjrn: but then roo seems to do what you're saying without an exe | |
03:21:29 PM - xjrn: with glitches | |
03:27:44 PM - atomatom: thanks xjrn - yeah, i'm thinking being too automatic is going to get frustrating | |
03:29:36 PM - xjrn: once roo derails, it stays down | |
03:31:10 PM - atomatom: btw, i'm not using roo/intellij, just eclipse + gwt's incremental compilation |
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.springframework.security.authentication.encoding.Md5PasswordEncoder; | |
public class CustomMd5PasswordEncoder extends Md5PasswordEncoder { | |
@Override | |
protected String mergePasswordAndSalt(String password, Object salt, | |
boolean strict) { | |
if (password == null) { | |
password = ""; | |
} |