I hereby claim:
- I am brianz on github.
- I am bezeee (https://keybase.io/bezeee) on keybase.
- I have a public key ASCpJjqPvAj3vPeinmHfxBil0mv7oRErQ6VkLU_ToS-OZQo
To claim this, I am signing this object:
| from Phidget22.Devices.TemperatureSensor import TemperatureSensor | |
| from Phidget22.ThermocoupleType import ThermocoupleType | |
| import time | |
| # Create a temperature sensor object | |
| temperature_sensor = TemperatureSensor() | |
| # Set the channel number | |
| temperature_sensor.setChannel(1) |
I hereby claim:
To claim this, I am signing this object:
| import contextlib | |
| from contextlib import contextmanager | |
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import sessionmaker | |
| from sqlalchemy.pool import NullPool | |
| from sqlalchemy_utils import database_exists, create_database |
| import contextlib | |
| from contextlib import contextmanager | |
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import sessionmaker | |
| from sqlalchemy.pool import ( | |
| NullPool, | |
| QueuePool, | |
| StaticPool, |
| #!/bin/bash | |
| curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add - | |
| sudo apt-get install -y \ | |
| apt-transport-https \ | |
| software-properties-common \ | |
| ca-certificates | |
| sudo add-apt-repository \ |
| #!/bin/bash | |
| # | |
| # This builds and installs a newer version of nginx on Ubuntu 14 with the same build/configure arguments | |
| # as the apt version | |
| # | |
| ./configure \ | |
| --prefix=/etc/nginx \ | |
| --sbin-path=/usr/sbin \ | |
| --conf-path=/etc/nginx/nginx.conf \ |
| [uwsgi] | |
| http=0.0.0.0:8888 | |
| wsgi-file=wsgi_handler.py | |
| processes=1 | |
| threads=1 | |
| py-auto-reload=3 |
| import servant.fields | |
| from servant.exceptions import ActionError | |
| from servant.exceptions import ServantException | |
| from servant.service.actions import Action | |
| class AddAction(Action): | |
| number1 = servant.fields.IntField( | |
| required=True, |
| from servant.service.base import Service | |
| import actions | |
| class CalculatorService(Service): | |
| name = 'calculator_service' | |
| version = 1 |
| from setuptools import setup, find_packages | |
| setup( | |
| name = 'calculator_service', | |
| packages=find_packages(), | |
| version = '1.0', | |
| description = 'Example application with Servant', | |
| author='Brian Zambrano', | |
| author_email='[email protected]', | |
| classifiers=[ |