code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Queries with paginated results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(...
127001h4ck3r-hackerpython
samples/searchforshopping/pagination.py
Python
asf20
1,511
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get and prin...
127001h4ck3r-hackerpython
samples/searchforshopping/histograms.py
Python
asf20
1,822
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): ...
127001h4ck3r-hackerpython
samples/searchforshopping/ranking.py
Python
asf20
1,300
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query that is restricted by a parameter against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI...
127001h4ck3r-hackerpython
samples/searchforshopping/restricting.py
Python
asf20
1,276
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with grouping against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get...
127001h4ck3r-hackerpython
samples/searchforshopping/crowding.py
Python
asf20
1,667
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Full text search query against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """...
127001h4ck3r-hackerpython
samples/searchforshopping/fulltextsearch.py
Python
asf20
1,222
# Django settings for django_sample project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'database.sqlite3' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' # Lo...
127001h4ck3r-hackerpython
samples/django_sample/settings.py
Python
asf20
2,600
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', 'django_sample.plus.views.index'), (r'^oauth2callback', 'django_sample.plus.views.auth_return'), # ...
127001h4ck3r-hackerpython
samples/django_sample/urls.py
Python
asf20
875
import pickle import base64 from django.contrib import admin from django.contrib.auth.models import User from django.db import models from oauth2client.django_orm import FlowField from oauth2client.django_orm import CredentialsField # The Flow could also be stored in memcache since it is short lived. class FlowMod...
127001h4ck3r-hackerpython
samples/django_sample/plus/models.py
Python
asf20
730
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ""...
127001h4ck3r-hackerpython
samples/django_sample/plus/tests.py
Python
asf20
515
import os import logging import httplib2 from django.http import HttpResponse from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from oauth2client.django_orm import Storage from oauth2client.client import OAuth2WebServerFlow from django_sample.plus.models import Cre...
127001h4ck3r-hackerpython
samples/django_sample/plus/views.py
Python
asf20
1,963
<html> <head> <title>Your Google+ Activity</title> <style type=text/css> td { vertical-align: top; padding: 0.5em } img { border:0 } </style> </head> <body> <table border=1> {% for item in activitylist.items %} <tr><td>{{ item.object.content|safe }}</td></tr> {% end...
127001h4ck3r-hackerpython
samples/django_sample/templates/plus/welcome.html
HTML
asf20
358
{% block content %} {% if form.errors %} <p>Your username and password didn't match. Please try again.</p> {% endif %} <form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %} <table> <tr> <td>{{ form.username.label_tag }}</td> <td>{{ form.username }}</td> </tr> <tr> <td>{{ ...
127001h4ck3r-hackerpython
samples/django_sample/templates/plus/login.html
HTML
asf20
518
#!/usr/bin/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. You'll have to run...
127001h4ck3r-hackerpython
samples/django_sample/manage.py
Python
asf20
544
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Latitude. Command-line application that sets the users current location. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from apiclient.discovery import build import httplib2...
127001h4ck3r-hackerpython
samples/latitude/latitude.py
Python
asf20
2,070
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. # Portions copyright PSF License # http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ """A pm-action hook for setting timezone. Uses the Google Latitude API and the geonames.org API to find your c...
127001h4ck3r-hackerpython
samples/tz/tznever
Python
asf20
10,800
#!/usr/bin/env python # # Copyright 2007 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...
127001h4ck3r-hackerpython
samples/storage_serviceaccount_appengine/main.py
Python
asf20
3,522
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ama="http://doc.s3.amazonaws.com/2006-03-01"> <xsl:template match="/"> <html> <body> <h2><a href="http://developer.google.com/storage">Google Cloud Storage</a> Content Listing for Buck...
127001h4ck3r-hackerpython
samples/storage_serviceaccount_appengine/listing.xsl
XSLT
asf20
1,055
#!/usr/bin/env python # # Copyright 2007 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...
127001h4ck3r-hackerpython
samples/appengine_with_robots/main.py
Python
asf20
2,480
<html> <head> <title>Welcome</title> </head> <body> <form action="." method="post"> Long Url: <input name="longUrl" type="text" /> <input type="submit" /> </form> <table> <tr><th>Shortened</th><th>Original</th></tr> {% for item in short_and_long %} <tr><td><a href=...
127001h4ck3r-hackerpython
samples/appengine_with_robots/welcome.html
HTML
asf20
460
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/plus/plus.py
Python
asf20
4,378
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/urlshortener/urlshortener.py
Python
asf20
4,038
<?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Google APIs" /> <Content type="html"> <![CDATA[ <table> {% for item in directory %} <tr> <td><img style="width: 16px; height: 16px" src="{{ item.icons.x16 }}"/> {{ item.name }} </td> <td><a href="{{ item.docum...
127001h4ck3r-hackerpython
samples/api-python-client-doc/gadget.html
HTML
asf20
510
<!DOCTYPE HTML> <html> <head> <title> Google API Client for Python Documentation </title> <style type="text/css"> body { margin: 0; padding: 0; border: 0; } body table th, body table td { color: #333; font-family: Arial, sans-serif; ...
127001h4ck3r-hackerpython
samples/api-python-client-doc/embed.html
HTML
asf20
1,706
#!/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...
127001h4ck3r-hackerpython
samples/api-python-client-doc/main.py
Python
asf20
4,852
<!DOCTYPE HTML> <html> <head> <title> Google API Client for Python Documentation </title> <style> body { color: #333; font-family: Arial, sans-serif; } body table th, body table td { color: #333; font-family: Arial, sans-serif; font-s...
127001h4ck3r-hackerpython
samples/api-python-client-doc/index.html
HTML
asf20
1,737
# version: v1 # scope: https://www.googleapis.com/auth/moderator # title: Simple command-line example for Moderator. # description: Command-line application that exercises the Google Moderator API. # Create a new Moderator series. series_body = { "description": "Share and rank tips for eating healthy and c...
127001h4ck3r-hackerpython
samples/src/moderator.py
Python
asf20
1,647
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/src/template.tmpl
Python
asf20
3,469
# version: v1 # title: Command-line sample for the Google URL Shortener API. # scope: https://www.googleapis.com/auth/urlshortener # description: Simple command-line example for Google URL Shortener API that shortens a URI then expands it. url = service.url() # Create a shortened URL by inserting the URL into the...
127001h4ck3r-hackerpython
samples/src/urlshortener.py
Python
asf20
614
# version: v1.2 # scope: https://www.googleapis.com/auth/prediction # title: Simple command-line sample for the Google Prediction API # description: Command-line application that trains on some data. This sample does the same thing as the Hello Prediction! example. # Name of Google Storage bucket/object that contain...
127001h4ck3r-hackerpython
samples/src/prediction.py
Python
asf20
1,113
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/customsearch/main.py
Python
asf20
1,303
#!/usr/bin/env python # # Copyright 2007 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...
127001h4ck3r-hackerpython
samples/dailymotion/main.py
Python
asf20
3,069
<html> <head> <title>Daily Motion Sample</title> <style type=text/css> td { vertical-align: top; padding: 0.5em } img { border:0 } </style> </head> <body> <p><a href="{{ logout }}">Logout</a></p> <h2>Response body:</h2> <pre>{{ content }} </pre> </body> </html>
127001h4ck3r-hackerpython
samples/dailymotion/welcome.html
HTML
asf20
307
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_ad_clients_for_account.py
Python
asf20
2,209
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_url_channels.py
Python
asf20
2,140
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_custom_channels_for_ad_unit.py
Python
asf20
3,263
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/generate_report_with_paging.py
Python
asf20
3,270
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/sample_utils.py
Python
asf20
3,811
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_ad_units.py
Python
asf20
2,105
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_ad_units_for_custom_channel.py
Python
asf20
2,677
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_account_tree.py
Python
asf20
2,054
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/generate_report.py
Python
asf20
2,245
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_ad_clients.py
Python
asf20
1,814
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_accounts.py
Python
asf20
1,655
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adsense/get_all_custom_channels.py
Python
asf20
2,768
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2012 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 ...
127001h4ck3r-hackerpython
samples/service_account/tasks.py
Python
asf20
2,084
<html> <head> <title>Event Response</title> <style> h2 { margin: 3ex 0 1ex; } th { background-color: grey; } td { vertical-align: top; overflow: auto; } tr.details td { padding: 0 3ex; } td pre { margin: 3ex 3em; w...
127001h4ck3r-hackerpython
samples/gan/events/events_template.html
HTML
asf20
3,366
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. """Sample for retrieving event information from GAN.""" __author__ = 'leadpipe@google.com (Luke Blanshard)' import apiclient import gflags import httplib2 import json import logging import os import stat import sys from django.conf impo...
127001h4ck3r-hackerpython
samples/gan/events/events.py
Python
asf20
5,740
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. """Sample for retrieving publisher information from GAN.""" __author__ = 'leadpipe@google.com (Luke Blanshard)' import apiclient import gflags import httplib2 import json import logging import os import stat import sys from django.conf ...
127001h4ck3r-hackerpython
samples/gan/publishers/publishers.py
Python
asf20
5,892
<html> <head> <title>Publisher Response</title> <style> h2 { margin: 3ex 0 1ex; } th { background-color: grey; } td { vertical-align: top; overflow: auto; } tr.details td { padding: 0 3ex; } td pre { margin: 3ex 3em; ...
127001h4ck3r-hackerpython
samples/gan/publishers/publishers_template.html
HTML
asf20
2,141
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. """Sample for retrieving advertiser information from GAN.""" __author__ = 'leadpipe@google.com (Luke Blanshard)' import apiclient import gflags import httplib2 import json import logging import os import stat import sys from django.conf...
127001h4ck3r-hackerpython
samples/gan/advertisers/advertisers.py
Python
asf20
5,908
<html> <head> <title>Advertiser Response</title> <style> h2 { margin: 3ex 0 1ex; } th { background-color: grey; } td { vertical-align: top; overflow: auto; } tr.details td { padding: 0 3ex; } td pre { margin: 3ex 3em; ...
127001h4ck3r-hackerpython
samples/gan/advertisers/advertisers_template.html
HTML
asf20
3,024
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. """Sample for retrieving credit-card offers from GAN.""" __author__ = 'leadpipe@google.com (Luke Blanshard)' import gflags import httplib2 import json import logging import os import stat import sys from django.conf import settings from...
127001h4ck3r-hackerpython
samples/gan/ccoffers/offers.py
Python
asf20
4,171
<html> <head> <title>Credit Card Offers for Publisher {{ publisher }}</title> <style> h2 { margin: 3ex 0 1ex; } td.cardName { padding-bottom: 2ex; } td { vertical-align: top; overflow: auto; } tr.details td { padding: 0 3ex; min-width: 15%; max-width: 33%; } tr.details td i...
127001h4ck3r-hackerpython
samples/gan/ccoffers/offers_template.html
HTML
asf20
2,880
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/audit/audit.py
Python
asf20
4,837
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/analytics/sample_utils.py
Python
asf20
4,397
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2012 Google Inc. All Rights Reserved. # # 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...
127001h4ck3r-hackerpython
samples/analytics/core_reporting_v3_reference.py
Python
asf20
7,578
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2012 Google Inc. All Rights Reserved. # # 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...
127001h4ck3r-hackerpython
samples/analytics/management_v3_reference.py
Python
asf20
14,495
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2012 Google Inc. All Rights Reserved. # # 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...
127001h4ck3r-hackerpython
samples/analytics/hello_analytics_api_v3.py
Python
asf20
5,340
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/translate/main.py
Python
asf20
1,274
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/setup.py
Python
asf20
1,951
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/gtaskqueue_puller
Python
asf20
12,975
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/task_cmds.py
Python
asf20
7,822
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/gtaskqueue
Python
asf20
1,494
#!/usr/bin/env python # # 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 or agreed to in writing, softwa...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/client_task.py
Python
asf20
13,665
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/taskqueue_cmds.py
Python
asf20
1,871
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/taskqueue_client.py
Python
asf20
7,552
#!/usr/bin/env python # # 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 or agreed to in writing, softwa...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/gen_appengine_access_token
Python
asf20
4,305
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/taskqueue_cmd_base.py
Python
asf20
10,640
#!/usr/bin/env python # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
samples/gtaskqueue_sample/gtaskqueue/taskqueue_logger.py
Python
asf20
1,642
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adexchangebuyer/update_account.py
Python
asf20
2,145
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adexchangebuyer/sample_utils.py
Python
asf20
3,637
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adexchangebuyer/get_creative.py
Python
asf20
2,406
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adexchangebuyer/get_all_accounts.py
Python
asf20
1,381
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adexchangebuyer/get_direct_deals.py
Python
asf20
1,560
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
127001h4ck3r-hackerpython
samples/adexchangebuyer/submit_creative.py
Python
asf20
2,797
#!/usr/bin/env python # # Copyright 2007 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...
127001h4ck3r-hackerpython
upload-diffs.py
Python
asf20
81,770
# Copyright (C) 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 or agreed to in writ...
127001h4ck3r-hackerpython
setup.py
Python
asf20
2,160
#!/bin/bash openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \ -keyout privatekey.pem -out publickey.pem \ -subj "/CN=unit-tests" openssl pkcs12 -export -out privatekey.p12 \ -inkey privatekey.pem -in publickey.pem \ -name "key" -passout pass:notasecret
127001h4ck3r-hackerpython
tests/data/create-private-keys.sh
Shell
asf20
273
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
127001h4ck3r-hackerpython
uritemplate/__init__.py
Python
asf20
4,780
#!/usr/bin/env python import glob import imp import logging import os import sys import unittest from trace import fullmodname logging.basicConfig(level=logging.CRITICAL) APP_ENGINE_PATH='../google_appengine' # Conditional import of cleanup function try: from tests.utils import cleanup except: def cleanup(): ...
127001h4ck3r-hackerpython
runtests.py
Python
asf20
755
export PYTHONPATH=`pwd`:${PYTHONPATH}
127001h4ck3r-hackerpython
setpath.sh
Shell
asf20
38
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
127001h4ck3r-hackerpython
sample_generator.py
Python
asf20
2,208
#!/usr/bin/env python # # Copyright 2007 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...
127001h4ck3r-hackerpython
describe.py
Python
asf20
1,978
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2012 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 req...
127001h4ck3r-hackerpython
samples-index.py
Python
asf20
6,652
/* * Copyright (C) 2009 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...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/PreferencesActivity.java
Java
asf20
3,039
package com.ch_linghu.fanfoudroid.app; import java.util.HashMap; import android.graphics.Bitmap; public class MemoryImageCache implements ImageCache { private HashMap<String, Bitmap> mCache; public MemoryImageCache() { mCache = new HashMap<String, Bitmap>(); } @Override public Bitmap ...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java
Java
asf20
831
/* * Copyright (C) 2009 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...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/Preferences.java
Java
asf20
2,782
package com.ch_linghu.fanfoudroid.app; import android.text.Spannable; import android.text.method.LinkMovementMethod; import android.text.method.MovementMethod; import android.view.MotionEvent; import android.widget.TextView; public class TestMovementMethod extends LinkMovementMethod { private double mY...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/TestMovementMethod.java
Java
asf20
1,336
package com.ch_linghu.fanfoudroid.app; import android.app.Activity; import android.content.Intent; import android.widget.Toast; import com.ch_linghu.fanfoudroid.LoginActivity; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.fanfou.RefuseError; import com.ch_linghu.fanfoudroid.http.HttpAuthExcepti...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/ExceptionHandler.java
Java
asf20
2,064
/* * Copyright (C) 2009 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...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/ImageManager.java
Java
asf20
16,006
package com.ch_linghu.fanfoudroid.app; import android.graphics.Bitmap; import android.widget.ImageView; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback; public class SimpleImageLoader { public static void display(final ImageView i...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/SimpleImageLoader.java
Java
asf20
912
package com.ch_linghu.fanfoudroid.app; import java.lang.Thread.State; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import android.graphi...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java
Java
asf20
6,721
package com.ch_linghu.fanfoudroid.app; import android.graphics.Bitmap; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterApplication; public interface ImageCache { public static Bitmap mDefaultBitmap = ImageManager.drawableToBitmap(TwitterApplication.mContext.getResources().getDraw...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/app/ImageCache.java
Java
asf20
443
/* * Copyright (C) 2009 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...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/data/Tweet.java
Java
asf20
6,410
package com.ch_linghu.fanfoudroid.data; import android.database.Cursor; public interface BaseContent { long insert(); int delete(); int update(); Cursor select(); }
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/data/BaseContent.java
Java
asf20
184
package com.ch_linghu.fanfoudroid.data; import com.ch_linghu.fanfoudroid.fanfou.DirectMessage; import com.ch_linghu.fanfoudroid.fanfou.User; import com.ch_linghu.fanfoudroid.util.TextHelper; public class Dm extends Message { @SuppressWarnings("unused") private static final String TAG = "Dm"; public...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/data/Dm.java
Java
asf20
884
package com.ch_linghu.fanfoudroid.data; import java.util.Date; import android.os.Parcel; import android.os.Parcelable; public class User implements Parcelable { public String id; public String name; public String screenName; public String location; public String description; public String profil...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/data/User.java
Java
asf20
2,793
package com.ch_linghu.fanfoudroid.data; import java.util.Date; public class Message { public String id; public String screenName; public String text; public String profileImageUrl; public Date createdAt; public String userId; public String favorited; public String truncated; public St...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/data/Message.java
Java
asf20
517
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import and...
061304011116lyj-fanfou
src/com/ch_linghu/fanfoudroid/FanfouWidget.java
Java
asf20
8,105