Skip to content

Instantly share code, notes, and snippets.

@esfand
esfand / Low-Level Datastore Servlet.java
Created April 17, 2010 15:52
Low-Level Datastore Servlet
/*
* Copyright 2009 New Atlanta Communications, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@esfand
esfand / Maven Project.xml
Created April 19, 2010 12:22
GWT Maven Project
// Using gwt-maven-plugin To add the Google project nature to the project you
// need to configure your maven-eclipse-plugin like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>${maven.eclipse.plugin.version}</version>
<configuration>
</additionalConfig>
<additionalProjectnatures>
@esfand
esfand / scalatrascalate.scala
Created August 26, 2010 13:50
Scalatra Scalate Engine
package org.scalatra
package scalate
import java.io.PrintWriter
import javax.servlet.{ServletContext, ServletConfig, FilterConfig}
import javax.servlet.http.{HttpServletResponse, HttpServletRequest}
import org.fusesource.scalate.TemplateEngine
import org.fusesource.scalate.servlet.{ServletRenderContext, ServletTemplateEngine}
trait ScalateSupport extends Initializable {
# git-ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
*.[oa]
*~
*.ncb
*.suo
*.obj
*.ilk
.gitignore for VStudio
@esfand
esfand / User.java
Created October 19, 2010 20:48 — forked from anonymous/User.java
import java.util.Date;
import javax.jdo.PersistenceManager;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.gwt.requestfactory.shared.Version;

How to Use Google Plugin for Eclipse with Maven Posted by David Chandler - Monday, August 30, 2010 at 3:00:00 PM

Source: http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html

More: http://groups.google.com/group/maven-gae-plugin/browse_thread/thread/af7515a173e34446/00d0ceafde02f3c8?show_docid=00d0ceafde02f3c8

As part of the GWT team's ongoing effort to address the needs of the Maven community, the Google Plugin for Eclipse (GPE) team is working to improve interoperability with Maven in future releases. Plugin version 1.3.3 makes it possible to use Maven in a GPE project with a little tweaking, and future versions aim to improve this experience. There is already good support from the open source community for using Maven with GWT and/or App Engine projects; however, it has been difficult to enable both Maven and GPE for the same project. This article explains how to do that. It assumes you already have some Maven knowledge. Working with GWT and GAE in Maven

@esfand
esfand / subversion config
Created October 31, 2010 16:13
Subversion Global Config patterns
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
*.rej *~ #*# .#* .*.swp .DS_Store
*.resharperoptions Web_Data log */[Bb]in [Bb]in */obj obj */TestResults
TestResults */[Rr]elease [Rr]elease */[Dd]ebug [Dd]ebug *.user *.suo
*.resharper */_ReSharper.* _ReSharper.* *.bak *.dll *.pdb. *.class *.exe
*.old *.scc *.vspscc *.bak *.vsp *.ncb *.aps */.int */_UpgradeReport*
UpgradeLog*.XML
@esfand
esfand / SienaGAE.java
Created January 25, 2011 15:22
Siena GAE
import java.io.File;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
@esfand
esfand / expenses.pom.xml
Created February 16, 2011 10:08
Maven pom.xml for GWT and GAE (originally from Expenses-2.2.0 sample
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.gwt.sample.expenses</groupId>
<artifactId>expenses</artifactId>
<packaging>war</packaging>
<version>0.1.0.BUILD-SNAPSHOT</version>
<name>expenses</name>
<properties>
<gwt.version>2.2.0</gwt.version>