code
stringlengths
1
1.72M
language
stringclasses
1 value
#!/usr/bin/python from pychartdir import * #///////////////////////////////////////////////////////////////////////////////////////////////// # Copyright 2008 Advanced Software Engineering Limited # # ChartDirector FinanceChart class library # - Requires ChartDirector Ver 5.0 or above # # You may use and ...
Python
#!/usr/bin/python from pychartdir import * def GerarGrafico(valor, tempo, evento): # The data for the line chart listaValor = [] for x in valor: listaValor.append(x) # The labels for the line chart listaTempo = [] for x in tempo: listaTempo.append(str(x)) # Create a XYChart object of size 50...
Python
from simpleline import * lista = [] tempo = [] x=0 y=10 for x in range(10): lista.append(x) for x in range(20): tempo.append(x) GerarGrafico(lista, tempo)
Python
from django.contrib import admin from models import Categoria from models import Evento class EventoLine(admin.StackedInline): model = Evento class CategoriaAdmin(admin.ModelAdmin): extra = 1 max_num = 1 inlines = [EventoLine] ordering = ['id'] admin.site.register(Categoria, CategoriaAdmin) admin....
Python
#!/usr/bin/python from pychartdir import * #///////////////////////////////////////////////////////////////////////////////////////////////// # Copyright 2008 Advanced Software Engineering Limited # # ChartDirector FinanceChart class library # - Requires ChartDirector Ver 5.0 or above # # You may use and ...
Python
# Create your views here. from django.shortcuts import render_to_response import os from django.forms import ModelForm from django.db.models import Avg, Max, Min, Count import datetime from django.http import HttpResponse from models import Categoria from models import Evento from django.shortcuts import get_...
Python
import sys, os, time, string cdPyVer = 0x500 cdSysVer = sys.version[:3] if cdSysVer == "1.5" : import pychartdir15 cdDll = pychartdir15 elif cdSysVer == "1.6" : import pychartdir16 cdDll = pychartdir16 elif cdSysVer == "2.0" : import pychartdir20 cdDll = pychartdir20 elif cdSysVer == "2.1" : imp...
Python
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll ha...
Python
from django.conf.urls.defaults import * from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', 'medicao.views.index'), (r'^buscar_grafico/$', 'medicao.views.buscar_grafico'...
Python
# Django settings for fotometria project. DEBUG = True TEMPLATE_DEBUG = DEBUG import os ROOTDIR = os.path.realpath(os.path.dirname(__file__)) ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', #...
Python
#!/usr/bin/env python import imageshack import sys if __name__ == "__main__": if len(sys.argv)!=3: print "Usage upload.py <devkey> <filename/url>" sys.exit(1) u = imageshack.Uploader(sys.argv[1]) try: if sys.argv[2].startswith("http://"): print u.uploadURL(sys.argv[2]...
Python
#!/usr/bin/env python import yfrog import sys if __name__ == "__main__": if len(sys.argv)<4: print "Usage upload.py <username> <password> <filename/url> [<text>] [<source>]" sys.exit(1) u = yfrog.Uploader() if len(sys.argv)>=5: msg = sys.argv[4] else: msg = None if...
Python
#!/usr/bin/env python import os import sys import getopt import imageshack def usage(): print "Usage apitest.py --file filename --key key [--id ID] [--cookie COOKIE] [--tags TAGS] [--visibility PUBLIC] [--username USERNAME] [--password PASSWORD] [--blocksize=BLOCKSIZE] [--numblocks=NUMBLOCKS]" def getopts(arg...
Python
#!/usr/bin/env python ''' Client API library to upload images and videos to yfrog.com Using Yfrog public API, as described here: http://yfrog.com/api.php ''' import urllib2_file import urllib2 import socket from mimetypes import guess_type from xml.dom.minidom import parseString from os.path import exists API_UR...
Python
''' yfrog api ''' from upload import *
Python
#!/usr/bin/env python #### # Version: 0.2.0 # - UTF-8 filenames are now allowed (Eli Golovinsky)<br/> # - File object is no more mandatory, Object only needs to have seek() read() attributes (Eli Golovinsky)<br/> # # Version: 0.1.0 # - upload is now done with chunks (Adam Ambrose) # # Version: older # THANKS TO: # b...
Python
#!/usr/bin/env python ''' Client API library to upload images and videos to imageshack.us Using "Unified upload API" as described here: http://reg.imageshack.us/content.php?page=developerpublic ''' import urllib2_file import urllib2 import socket import httplib from mimetypes import guess_type from xml.dom.minido...
Python
#!/usr/bin/env python ''' Client API library for chuncked video uploading to imageshack.us Using "Streaming upload API" as described here: http://code.google.com/p/imageshackapi/wiki/StreamingAPI ''' import os import urllib import httplib import urllib2 from urlparse import urlparse from os.path import exists fro...
Python
''' imageshack api ''' from upload import * from chuncked_upload import Uploader as ChunkedUploader
Python
#!/usr/bin/env python #### # Version: 0.2.0 # - UTF-8 filenames are now allowed (Eli Golovinsky)<br/> # - File object is no more mandatory, Object only needs to have seek() read() attributes (Eli Golovinsky)<br/> # # Version: 0.1.0 # - upload is now done with chunks (Adam Ambrose) # # Version: older # THANKS TO: # b...
Python
import SOAPpy as SOAP import time, sys if len(sys.argv) > 1: fname = sys.argv[1] else: print "No file given"; sys.exit(0) t = time.time() server = SOAP.SOAPProxy("http://localhost:8080/") data = server.fetch_file(fname) try: open(fname) fname = '_'+fname f = file(fname, 'wb') except: f = file(fname, 'wb') try: ...
Python
import SOAPpy as SOAP def fetch_file(fname): f = file(fname, 'rb') data = '' while 1: bytes = f.read(8) if not bytes: break data += '.'+'.'.join(str((ord(c))) for c in bytes) print '****\nRequest on: %s\nReturning: %sb\nType: %s\n****' % (fname, len(data), type(data)) return data server = SOAP.SOAPServer((...
Python
from google.appengine.api import mail from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext.webapp.mail_handlers import InboundMailHandler #import logging import email import codecs ############################################################## #ch...
Python
class MovingEntity: def __init__(self, x, y): self.pos = Vector(x, y) self.dir = Vector(1, 0) self.vel = 5.0 self.acc_dir = Vector(0, 0) self.colour = (255, 0, 0) self.radius = 3 def Update(self, delta, engine): pos = self.pos + (self.dir * (delta / 100....
Python
class MapNode: idx = 0 def __init__(self, pos, parent): self.pos = pos.clone() self.idx = MapNode.idx self.accessible = True self.parent = parent MapNode.idx += 1 self.edge_list = [] class MapEdge: def __init__(self, dest, cost): self.dest = dest ...
Python
class ArenaMap: def __init__(self, size): self.walls = [] self.spawns = [] self.exit = Exit((200, 200)) self.navGraph = NavGraph() background = pygame.Surface(size) self.background = background.convert() def LoadMap(self, map_data): self.navGraph.set_dim...
Python
class Hud: def __init__(self, pos, width = 640, height = 60): self.pos = pos self.width = width self.height = height self.fps = "111" self.font = pygame.font.SysFont("Arial", 32) background = pygame.Surface((width, height)) self.background = background.conver...
Python
""" This is a quaternion :D """ import Numeric as N, maths class Quaternion: def __init__(self, quaternion=None, x = 0.0, y = 0.0, z = 0.0, w = 0.0): if quaternion: self.set(quaternion) else: self.repr = N.array((x, y, z, w)) def set(self, q): self.repr = N.array(q.repr) def __mul__(self, q): r = Qua...
Python
""" This is a vector Decide on what vector implementation to use """ # FIXME - do something about this import Numeric as N, maths class Vector: def __init__(self, vector = None, x = 0.0, y = 0.0, z = 0.0): """ Initialise from either a vector, or components """ #FIXME - do we need to handle matrixes as initial...
Python
class PriorityQueue: def __init__(self): self.list = [] def push(self, node): for i in range(len(self.list)): if node.cost < self.list[i].cost: self.list.insert(i, node) return self.list.append(node) def change(self, node): for i i...
Python
#!/bin/env python """ """ def main(): pass if __name__ == '__main__': main()
Python
#!/bin/env python """ """ def main(): pass if __name__ == '__main__': main()
Python
import random def n64(a,b): return a*2**32 + abs(b) for x in range(50): a = random.randrange(0,65000) b = random.randrange(0,65000) c = random.randrange(0,65000) d = random.randrange(0,65000) print " testSubInt64 %d %d %d %d %d %d %d;" % (a,b,c,d, n64(a,b), n64(c,d), n64(a,b)-n64(c,d))
Python
#!/usr/bin/env python # Copyright (c) 2010 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt import os import subprocess import time if os.name == 'nt': walltime = time.clock else: walltime ...
Python
#!/usr/bin/env python # Copyright (c) 2013 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt import os import os.path from optparse import OptionParser def ensure_file_exists(path): open(path...
Python
#!/usr/bin/env python # Copyright (c) 2013 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt # This file also contains a function violin_plot() which is third-party code. import yaml import subp...
Python
#!/usr/bin/env python # Copyright (c) 2009 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt from __future__ import with_statement import sys import re import os import os.path import subprocess ...
Python
#!/usr/bin/env python # Copyright (c) 2010 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt import sys import os import os.path from optparse import OptionParser from run_cmd import * def get_...
Python
#!/usr/bin/env python # A simple script to compare opcode mix logs generated from pin. from collections import defaultdict import math import sys # Based on code from http://bytes.com/topic/python/answers/164802-human-readable-number-formatting def human_readable(n): '''Return a human friendly approximation of n, ...
Python
import urllib2 import run_cmd import os import os.path OTT_VERSION = "0.20.1" OTT_DIR = "ott_distro_%s" % OTT_VERSION OTT_TGZ = "%s.tar.gz" % OTT_DIR OTT_URL = "http://www.cl.cam.ac.uk/~pes20/ott/%s" % OTT_TGZ if not os.path.isfile(OTT_TGZ): print "Downloading %s ..." % OTT_URL otgz = urllib2.urlopen(OTT_URL) ...
Python
import fileinput import re gcroots = [] gcroot_loads = [] nongcroot_loads = [] gcroot_stores = [] nongcroot_stores = [] def summarize(): print "%10d gcroots" % len(gcroots) print "%10d gcroot loads" % len(gcroot_loads) print "%10d gcroot stores" % len(gcroot_stores) print "%10d nongcroot loads" % len...
Python
#!/usr/bin/env python # Copyright (c) 2013 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt from collections import defaultdict try: from scripts.run_cmd import run_cmd, walltime, elapsed i...
Python
#!/usr/bin/env python # Copyright (c) 2010 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt from __future__ import with_statement import os import re import os.path import subprocess import sys...
Python
#!/usr/bin/env python # Copyright (c) 2009 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt from __future__ import with_statement import sys import re import os import os.path USAGE = "args: pa...
Python
from __future__ import with_statement import time import os import re import os.path import subprocess import sys import shutil import traceback import multiprocessing import itertools import run_test from list_all import collect_all_tests all_results = [] def do_run_test(testpath, paths, tmpdir): test_tmpdir = ...
Python
# From http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substring#Python def longest_common_substring(s1, s2): m = [[0] * (1 + len(s2)) for i in xrange(1 + len(s1))] longest, x_longest = 0, 0 for x in xrange(1, 1 + len(s1)): for y in xrange(1, 1 + len(s2)): if...
Python
#!/usr/bin/env python # Python port of Ian Piumarta's watch.c # BSD Licensed - http://eschew.org/txt/bsd.txt import re import os import sys import time import string import subprocess maxfiles = 64 def usage(): return """usage: %(watch)s <paths...> - <commands...> <paths...> is/are the file/s to be monitored <...
Python
from __future__ import with_statement import os import os.path import sys def collect_all_tests(bootstrap_dir): rv = [] for root, dirs, files in os.walk(bootstrap_dir, topdown=False): base = os.path.basename(root) code_path = os.path.join(root, base + ".foster") have_code = os.path.exists(code_path) ...
Python
import urllib import urllib2 class StatHat: def http_post(self, path, data): pdata = urllib.urlencode(data) req = urllib2.Request('http://api.stathat.com' + path, pdata) resp = urllib2.urlopen(req) return resp.read() def post_value(self,...
Python
# nothing to do here!
Python
#!/usr/bin/env python import os import sys if len(sys.argv) == 2: print os.path.normpath(sys.argv[1]) else: print """Usage: %s <path-to-normalize>""" % sys.argv[0]
Python
#--------------------------------------------------------------------------- # Copyright (c) 2013 Ben Karel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt #------------------------------------------------...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2013 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # 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 o...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # 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 o...
Python