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/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] |
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 argparse | |
import getpass | |
import sys | |
import mysql.connector | |
class AssetsFixer: | |
cols = ["id", "parent_id", "level", "lft", "rgt"] |
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
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. |
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/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 |
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/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 |
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/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 |
NewerOlder