I hereby claim:
- I am ssbozy on github.
- I am ssbozy (https://keybase.io/ssbozy) on keybase.
- I have a public key ASASFJaNN_SP7cV1ie1XtSANnO3hU_spmXMlIWGj58l5cQo
To claim this, I am signing this object:
| #!/bin/python | |
| from flashtext.keyword import KeywordProcessor | |
| import random | |
| import string | |
| import re | |
| import time | |
| def get_word_of_length(str_length): | |
| # generate a random word of given length |
| class CircularBuffer(object): | |
| def __init__(self, buffersize): | |
| self.buffer = [] | |
| self.buffersize = buffersize | |
| self.capacity = len(self.buffer) | |
| def __repr__(self): | |
| return '<CircularBuffer({0})>'.format(self.buffer) |
| # USAGE | |
| # python detect_blur.py --images images | |
| # import the necessary packages | |
| from imutils import paths | |
| import argparse | |
| import cv2 | |
| def variance_of_laplacian(image): | |
| # compute the Laplacian of the image and then return the focus |
I hereby claim:
To claim this, I am signing this object:
| import jsonschema | |
| import sys | |
| # A sample schema, like what we'd get from json.load() | |
| schema = { | |
| "type" : "object", | |
| "properties" : { | |
| "price" : {"type" : "number"}, | |
| "name" : {"type" : "string"}, | |
| "details":{ |
| "\e[A": history-search-backward | |
| "\e[B": history-search-forward | |
| set completion-ignore-case on | |
| set show-all-if-ambiguous on | |
| TAB: menu-complete |
| sudo apt-get clean | |
| sudo apt-get update |
| import struct | |
| class ColorSwatch(): | |
| def __init__(self, fp): | |
| self.rawdata = struct.unpack(">5H",fp.read(10)) | |
| print self.rawdata | |
| namelen, = struct.unpack(">I",fp.read(4)) | |
| cp = fp.read(2*namelen) | |
| self.name = cp[0:-2].decode('utf-16-be') | |
| self.typename = self.colorTypeName() |
| import struct | |
| import requests | |
| class ColorSwatch(): | |
| def __init__(self, fp): | |
| self.rawdata = struct.unpack(">5H",fp.read(10)) | |
| namelen, = struct.unpack(">I",fp.read(4)) | |
| cp = fp.read(2*namelen) | |
| self.name = cp[0:-2].decode('utf-16-be') | |
| self.typename = self.colorTypeName() |
| import sys | |
| class CurrencyCalculator: | |
| def __init__(self, check_cash): | |
| self.check_cash = check_cash | |
| # base_cash should be sorted list with highest currency denomination to lowest | |
| self.base_cash = [100, 50, 20, 10, 5, 1] | |
| self.result = self._breakdown() |