I hereby claim:
- I am cameronmaske on github.
- I am cameronmaske (https://keybase.io/cameronmaske) on keybase.
- I have a public key whose fingerprint is 08D0 2E91 2D9C 17EC 8873 E9F1 16AF 160A 264C 8ECB
To claim this, I am signing this object:
| """ | |
| base64's `urlsafe_b64encode` uses '=' as padding. | |
| These are not URL safe when used in URL paramaters. | |
| Functions below work around this to strip/add back in padding. | |
| See: | |
| https://docs.python.org/2/library/base64.html | |
| https://mail.python.org/pipermail/python-bugs-list/2007-February/037195.html | |
| """ |
| from myproject.config import celery_app # Change this. | |
| import requests | |
| import librato | |
| import time | |
| import os | |
| LIBRATO_USERNAME = "" | |
| LIBRATO_API_TOKEN = "" | |
| RABBIT_MQ_API_URL "http://localhost:15672/api/" | |
| RABBIT_MQ_USERNAME = "" |
| from tests import TestCase | |
| def TestTasks(TestCase): | |
| signals = False | |
| def before(self): | |
| self.model = Bla() | |
| def after(self): | |
| print("done") | |
| FROM orchardup/python:2.7 | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| RUN apt-get install -y libpng12-dev libsvga1-dev libjpeg8-dev libfreetype6-dev libjasper-dev fontconfig | |
| # Install PhantomJS | |
| RUN mkdir /opt/phantomjs-1.9.2 | |
| RUN apt-get install -y wget | |
| RUN wget -O /tmp/phantomjs-1.9.2.tar.gz https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 |
| # encoding: utf-8 | |
| from __future__ import unicode_literals | |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| from selenium.webdriver.support.ui import Select | |
| class Scraper(): | |
| def __init__(self): |
I hereby claim:
To claim this, I am signing this object:
| import sys | |
| def tracer(frame, event, arg): | |
| if event != 'call': | |
| return | |
| co = frame.f_code | |
| func_name = co.co_name | |
| if func_name == 'write': | |
| # Ignore write() calls from print statements | |
| return |
| function nestCollection(model, attributeName, nestedCollection) { | |
| //setup nested references | |
| for (var i = 0; i < nestedCollection.length; i++) { | |
| model.attributes[attributeName][i] = nestedCollection.at(i).attributes; | |
| } | |
| //create empty arrays if none | |
| nestedCollection.bind('add', function (initiative) { | |
| if (!model.get(attributeName)) { | |
| model.attributes[attributeName] = []; |