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
# -*- coding: utf-8 -*- | |
""" | |
codegen | |
~~~~~~~ | |
Extension to ast that allow ast -> python code generation. | |
:copyright: Copyright 2008 by Armin Ronacher. | |
:license: BSD. | |
""" |
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 main.scala | |
import javax.servlet.http.{HttpServlet,HttpServletRequest,HttpServletResponse} | |
import org.eclipse.jetty.server.Server | |
import java.io.PrintWriter | |
import java.net.URLEncoder | |
class MongoServlet extends HttpServlet { | |
import com.mongodb.casbah.Imports._ | |
val conn = MongoConnection("mongo.example.dotcloud.com",5907) |