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
### Keybase proof | |
I hereby claim: | |
* I am nkvoll on github. | |
* I am nkvoll (https://keybase.io/nkvoll) on keybase. | |
* I have a public key ASAe1pFwYobtKHCoH-aRN2tAnLHI3pIhLJuS2_3ee7Gv8Ao | |
To claim this, I am signing this object: |
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
_type: a | |
foo: 1 | |
--- | |
_type: b | |
foo: test |
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
text: 1.flv | |
analyzer: | |
default: | |
type: standard | |
keyword: | |
type: keyword |
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
my_id: A01 | |
--- | |
my_id: A02 | |
--- | |
my_id: A011 | |
--- | |
my_id: A012 |
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
analyzer: | |
casesensitive: | |
type: custom | |
tokenizer: standard | |
filter: [standard, stop] |
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
userId: 10 | |
name: | |
first: Katherine | |
last: Jones | |
tags: | |
- trick manager | |
- restaurant manager | |
--- | |
userId: 14 | |
name: |
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
$ python test_memory.py | |
generating documents from a set of 98569 | |
used memory: 14372 | |
adding documents to the database... | |
0 | |
1000 | |
2000 | |
3000 | |
4000 | |
5000 |
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 zmq | |
import time | |
c = zmq.Context() | |
s = c.socket(zmq.PULL) | |
s2 = c.socket(zmq.PULL) | |
s.setsockopt(zmq.HWM, 1) | |
s2.setsockopt(zmq.HWM, 25) |
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
njal@ubuntu:~/tmp$ virtualenv --no-site-packages pyctest | |
New python executable in pyctest/bin/python | |
Installing distribute..................................................................................................................................................................................done. | |
njal@ubuntu:~/tmp$ cd pyctest | |
njal@ubuntu:~/tmp/pyctest$ source bin/activate | |
(pyctest)njal@ubuntu:~/tmp/pyctest$ pip install pycrypto==2.3 | |
Downloading/unpacking pycrypto==2.3 | |
Downloading pycrypto-2.3.tar.gz (331Kb): 331Kb downloaded | |
Running setup.py egg_info for package pycrypto | |
Installing collected packages: pycrypto |