I hereby claim:
- I am ybv on github.
- I am ybv (https://keybase.io/ybv) on keybase.
- I have a public key whose fingerprint is 73E1 C42C 843E 57CD 3E17 D31E E799 7AB7 8F04 7A32
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |
''' | |
python roundup | |
131 -> 200 | |
999 -> 1000 | |
''' | |
def roundUp(num): | |
val = (int(str(num)[0])+1)*pow(10,len(str(num))-1) | |
''' | |
python sqrt |
import os | |
import hashlib | |
import tornado.ioloop | |
import tornado.web | |
from tornado import gen | |
class bv(object): | |
def __init__(self): | |
self.bit_vector = None |
{'$or': [ {'$and':[ dict(zip(keys, triple.split(':')))] } if '0' not in triple else {'$and':[ dict(zip(keys, triple.split(':')[:2]))] } for triple in termstr ]} |
### Keybase proof | |
I hereby claim: | |
* I am ybv on github. | |
* I am ybv (https://keybase.io/ybv) on keybase. | |
* I have a public key whose fingerprint is 6F18 8E89 D9FF 0DEA 6DDC EBE3 4A22 C131 8406 61A2 | |
To claim this, I am signing this object: |
import string | |
import fuzzy | |
import itertools | |
import random | |
import re | |
from itertools import groupby | |
table = string.maketrans("","") | |
soundex = fuzzy.Soundex(4) | |
dmetaphone = fuzzy.DMetaphone(4) |
#!/usr/bin/nv bash | |
directory=$PWD | |
dot="." | |
ddot=".." | |
myarray=(`find $directory -type f -name "*.mp3"`) | |
if [ ${#myarray[@]} -gt 0 ]; then | |
for name in ${myarray[@]}; do | |
if [[ "$(dirname $name)" != "$dot" ]]; then | |
rsync -aq --progress $(dirname $name) "/Users/ybv/music" | |
fi |