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 os | |
import tornado.wsgi | |
import tornado.web | |
import sae | |
import json | |
class MainHandler(tornado.web.RequestHandler): | |
def get(self): | |
t = '''{"b":"1","c":"1","d":"1"}''' | |
tt = '''[{"b":"1","c":"1","d":"1"},{"b":"2","c":"2","d":"2"},{"b":"3","c":"3","d":"3"}]''' |
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 datetime | |
from google.appengine.ext import db | |
from google.appengine.tools import bulkloader | |
class Tiee(db.Model): | |
name = db.StringProperty() | |
category = db.StringProperty() | |
phone_computer = db.StringProperty() | |
port = db.StringProperty() |
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
#!/usr/bin/env python | |
#calc | |
import sys | |
try: | |
import pygtk | |
pygtk.require("2.0") | |
except: | |
pass | |
try: | |
import gtk |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> | |
<!--Generated with glade3 3.4.5 on Fri Oct 23 04:45:22 2009 --> | |
<glade-interface> | |
<widget class="GtkWindow" id="window1"> | |
<property name="title" translatable="yes">CwindowGtk</property> | |
<property name="default_width">360</property> | |
<property name="default_height">300</property> | |
<signal name="destroy" handler="on_window1_destroy"/> | |
<child> |
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
#!/usr/bin/env python | |
# example helloworld.py | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
class HelloWorld: | |
def hello(self, widget, data=None): |