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 web | |
import json | |
from mimerender import mimerender | |
#Render statements | |
render_xml = lambda message: '<message>%s</message>' % message | |
render_json = lambda **args: json.dumps(args) | |
render_html = lambda message: '<html><body>%s</body></html>' % message | |
render_txt = lambda message: message |
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 | |
pathname = os.path.dirname(sys.argv[0]) + "/" | |
pathname = pathname + "/modules/" | |
__modules__ = [ os.path.basename(f)[:-3] for f in glob.glob(os.path.dirname(pathname)+"/*.py")] | |
for module in __modules__: | |
__import__(module) | |
#calling checkMe() |
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/python -tt | |
#Didn't you hear? The bird is the word! | |
#@version: 0.1 | |
import sys | |
def main(filename): | |
f = open(filename, "r") | |
f2 = open("log.txt", "w") | |
count = 0 | |
for line in f: |
NewerOlder