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
# demo from blog.cwlau.com | |
import webapp2 | |
import os | |
class Demo(webapp2.RequestHandler): | |
def get(self): | |
self.response.headers['Content-Type'] = 'text/html' |
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
# demo from blog.cwlau.com | |
import os | |
os.environ.get('HTTP_X_APPENGINE_CITY', 'unknown city') |
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
<!-- Demo from blog.cwlau.com --> | |
<html> | |
<style type="text/css"> | |
.popup{ | |
display: inline-block; | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
width: 400px; |