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
import com.google.common.base.Objects; | |
import com.google.common.collect.Lists; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.Binding; | |
import com.google.inject.BindingAnnotation; | |
import com.google.inject.Guice; | |
import com.google.inject.Inject; | |
import com.google.inject.Injector; | |
import com.google.inject.Key; | |
import com.google.inject.Module; |
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 FontResource extends ClientBundle | |
{ | |
FontResource INSTANCE = GWT.create(FontResource.class); | |
@Source("font1.otf") | |
DataResource font1(); | |
@Source("font2.otf") | |
DataResource font2(); |
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 abstract class DateTimeFormat { | |
static DateTimeFormat getFormat(String pattern) | |
{ | |
if (GWT.isClient()) | |
return new DateTimeFormatClient(pattern); | |
else | |
return new DateTimeFormatServer(pattern); | |
} | |
public abstract String format(Date date); |
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
// | |
// This program reads a sourcemap from stdin | |
// and replaces the "mappings" property with | |
// human readable content. It writes the output | |
// to stdout. | |
// | |
// 1. install the dependencies: | |
// npm i concat-stream vlq | |
// | |
// 2. optional: install jq for pretty printing json |