This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def unlimitedBatchRead(logger, db, keys): | |
''' | |
Takes a list of N keys and breaks it into requests of 100 keys or less. | |
This is the max per call key count as imposed by Amazon. | |
* db - A boto Table object | |
* keys - A list of item hash keys | |
''' | |
conn = db.layer2 | |
finalItems = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dateutil.parser | |
import optparse | |
import csv | |
import tempodb | |
from threading import Thread | |
from Queue import Queue | |
class Worker(Thread): | |
"""Thread executing tasks from a given tasks queue""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# Full Imports | |
import time | |
import cv | |
import cv2 | |
import sys | |
############################################################################## | |
# Partial Imports | |
from bb import getBB, getRectFromBB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
from random import randint | |
""" | |
############################# | |
Learning Loop | |
Our scenario is that of a simple creature in a very simple world. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
How to work with the AX1 Sensor | |
git clone [email protected]:iandanforth/pydynamixel.git | |
git checkout axs1 | |
python setup.py install | |
''' | |
import dynamixel | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################# | |
# Full Imports | |
from __future__ import division | |
import math | |
import random | |
""" | |
This is a pure Python implementation of the K-means Clustering algorithmn. The | |
original can be found here: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
import os | |
import subprocess | |
import time | |
iteration = 1 | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
import optparse | |
def main(options): | |
''' | |
Performs the amazingly useful tasks for this command line tool | |
''' | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######## | |
### Assuming Tag Key == 'params' and Tag Value = 'frontend:foo:bar:numenta' | |
tag = 'params' | |
filters = {} | |
if tag: | |
filters["tag-key"] = tag | |
# Stupid EC2 wrapper needs to be removed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Copyright (C) 2013 Numenta Inc. All rights reserved. | |
# | |
# The information and source code contained herein is the | |
# exclusive property of Numenta Inc. No part of this software | |
# may be used, reproduced, stored or distributed in any form, | |
# without explicit written authorization from Numenta Inc. | |
#------------------------------------------------------------------------------- | |
desc = """ | |
This tool will find instances with the tag specified in the accompanying |
OlderNewer