I hereby claim:
- I am alexgarel on github.
- I am alexg (https://keybase.io/alexg) on keybase.
- I have a public key ASBsywNBkJDreBeDtsJ-PVDh0JpstGl1UWyHkhsBeEMHJwo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| """ | |
| Jslint output reformater for Geany | |
| When defining your compile command in geany use:: | |
| /path/to/jslint %f |/path/to/jslint_out_for_geany.py | |
| """ | |
| import re |
| #!/usr/bin/env python3 | |
| """ | |
| Geany jshint output reformater | |
| When defining your compile command in geany | |
| just use /path/to/jshint %f |/path/to/reformat_jshint.py | |
| """ | |
| import re | |
| import sys |
| #!/usr/bin/env python3 | |
| """ | |
| Geany pyflakes and pep8 output reformater | |
| When defining your compile command in geany use:: | |
| /path/to/pyflakes %f 2>&1 |/path/to/pyflakes_out_for_geany.py | |
| /path/to/pep8 %f |/path/to/pyflakes_out_for_geany.py | |
| """ | |
| import sys |
| from functools import partial | |
| from celery.app.task import Task | |
| from celery.app.utils import find_app | |
| class CeleryTestTask(object): | |
| """A context manager to patch task in order to queue delayed tasks | |
| and eventually run them. This is for tests. |
| import argparse | |
| import getpass | |
| import sys | |
| import mysql.connector | |
| class AssetsFixer: | |
| cols = ["id", "parent_id", "level", "lft", "rgt"] |
| #!/usr/bin/env python3 | |
| """Transform a delicious export to a RIS file, that can be imported in Zotero | |
| You'll need lxml installed (python3-lxml) | |
| """ | |
| import datetime | |
| import sys | |
| from lxml import html | |
| fname = sys.argv[1] |
| from collections import defaultdict | |
| from six import string_types | |
| from gensim.models import phrases | |
| from gensim import utils | |
| class Phrases(phrases.Phrases): | |
| import numpy as np | |
| def np_arg_in(a, values, sorter=None): | |
| """find indices of `a` containing one of values | |
| :param a: numpy array to search in | |
| :param values: numpy array of values to search | |
| :sorter: optional array of integer indices that sort array a into ascending order | |
| """ | |
| if not isinstance(values, np.ndarray): |
| # in the shell | |
| # running ES6:: | |
| # | |
| # $ docker pull docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
| # $ docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
| # in a new widow, install elasticsearch_dsl in a new virtualenv:: | |
| # | |
| # $ cd /tmp/ |
I hereby claim:
To claim this, I am signing this object: