Blog Archives

Replacing abbreviations via Python and regular expressions

When gambling around with NLP and text corpora in Python, I frequently face simple abbreviations like “z.B.”, the german equivalent of “i.e.”, which I sometimes want to expand. This is a handy (german) utility-method expanding the defined abbrevations, via regular

Tagged with: , , ,
Posted in Development, Python

Virtual Environments, Python and Sublime 3

A simple Sublime 3-project file in order to run the currently opened script in a previously initialized virtual environment, in a linux environment: { "build_systems": [ { "name": "Run active script in Virtual Environment", "selector": "source.python", "shell_cmd": "source bin/activate &&

Tagged with: , , , ,
Posted in Development, Python

Sublime 3 projects: jshint me that

Getting your Sublime 3/SublimeLinter/SublimeLinter-jshint-combination to apply your (project) specific jshintrc-configuration… don’t forget to edit the executable’s path: { "folders": [ { "path": ".", "follow_symlinks": true } ], "settings": { "tab_size": 2, "SublimeLinter.linters.eslint.disable": true, "SublimeLinter.linters.jshint.disable": false, "SublimeLinter.linters.jshint.executable": [ "/your/specific/path/to/jshint" ], "SublimeLinter.linters.jshint.args":

Tagged with: , ,
Posted in Development, JavaScript

Go away, Caps Lock

On my german keyboard, I prefer to remap my Capslock-key to AltGr instead, allowing me to enter coding-related characters like ‘{‘, ‘}’, ‘[‘ and ‘]’ using two hands instead of one. In my linux-based OSes and distributions like Arch Linux,

Tagged with: ,
Posted in Development