I hereby claim:
- I am erichiggins on github.
- I am erichiggins (https://keybase.io/erichiggins) on keybase.
- I have a public key ASDQ1plERE4G6ef8c_KV640t0DUHHeD6FJFO1DbYX9X8xwo
To claim this, I am signing this object:
class BasicScale: | |
"""Class for controlling a basic scale scale.""" | |
# TODO(you): Update the default values, such as baudrate, to match your scale. | |
def __init__(self, memcache, port='/dev/ttyUSB0', baudrate=19200, timeout=0.1, _version=1, **kwargs): | |
"""Controller.""" | |
self._memcache = memcache | |
self._serial = serial.Serial(port=port, baudrate=baudrate, timeout=timeout, **kwargs) | |
# Set default values, which should be overwritten quickly. | |
self.raw = b'' |
#!/usr/bin/env python | |
""" | |
JSON encoder/decoder adapted for use with Google App Engine NDB. | |
Usage: | |
import ndb_json | |
# Serialize an ndb.Query into an array of JSON objects. | |
query = models.MyModel.query() |
#!/usr/bin/python | |
""" | |
Functions are provided for both the DB and NDB Datastore APIs. | |
References: | |
* https://cloud.google.com/appengine/docs/python/datastore/queries | |
* https://cloud.google.com/appengine/docs/python/ndb/queries | |
""" | |
def db_fetch_all(query, limit=100, cursor=None): |
#!/usr/bin/env python | |
""" | |
Setup a virtualenv with the Google App Engine SDK. | |
References: | |
http://virtualenv.readthedocs.org/en/latest/virtualenv.html#creating-your-own-bootstrap-scripts | |
http://mindtrove.info/virtualenv-bootstrapping/ | |
""" | |
import hashlib | |
import os |
.line { | |
fill: none; | |
stroke: lightblue; | |
stroke-width: 1.5px; | |
stroke-linecap: butt; | |
shape-rendering: geometricPrecision ; | |
} | |
.axis--x text { | |
} |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Search-augmented NDB Models for Google App Engine. | |
Usage: | |
import search_models | |
# Define an index for the document type. |
#!/usr/bin/env python | |
""" | |
Convert a directory of pip-installed libraries into zip-imports for use on GAE. | |
Usage: | |
pip install -U <library_name> | |
pip freeze > requirements_dev.txt | |
pip install -U --egg --target <path_to_zips> -r requirements_dev.txt | |
python zipimportify.py <path_to_zips> |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" | |
AppStats serializer module which converts App Engine profile data from Protocol Buffers into JSON. | |
Usage: | |
import appstats_serializer | |
# List all AppStats summaries: | |
appstats_dicts = appstats_serializer.appstats_to_dict(summaries_only=True) |
/** | |
* Usage: | |
* var MyRouter = Backbone.Router.extend(_.extend({}, OptionalRouteMixin, { | |
* userRoutes: { | |
* '/profile': 'profile' | |
* }, | |
* initialize: function(options) { | |
* this._bindOptRoutes(this.userRoutes); | |
* } | |
* })); |