Skip to content

Instantly share code, notes, and snippets.

View seperman's full-sized avatar
💭
Focusing on Information Retrieval, Search, Personalization and Data ETLs.

Sep Dehpour seperman

💭
Focusing on Information Retrieval, Search, Personalization and Data ETLs.
View GitHub Profile
@seperman
seperman / Flake8Lint.sublime-settings
Created February 8, 2016 22:02
PyFlake8 sublime settings
{
"live_mode": true,
// set live mode lint delay, in milliseconds
"live_mode_lint_delay": 1000,
"pep8_max_line_length": 120,
"ignore": ["D102","D100", "I100", "D300", "D204", "D211", "D400"],
}
@seperman
seperman / Markdown.sublime-settings
Last active April 14, 2016 05:49
Markdown.sublime-settings
// This goes to: AppData\Roaming\Sublime Text 3\Packages\User\Markdown (Standard).sublime-settings
// for markdown.
{
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme",
"spell_check": true
}
@seperman
seperman / ppdb.sublime-snippet
Last active August 9, 2016 22:38
Pytest pdb ppdb
<snippet>
<content><![CDATA[import pytest; pytest.set_trace()]]></content>
<tabTrigger>ppdb</tabTrigger>
<scope>source.python</scope>
<description>Pytest pdb</description>
</snippet>
@seperman
seperman / preferences.sublime-settings
Last active August 19, 2020 23:57
sublime settings user mac
{
"added_words":
[
"json",
"readthedocs",
"datetime",
"pprint",
"Django",
"Lucene",
"elasticsearch",
@seperman
seperman / npdb.sublime-snippet
Last active August 15, 2016 20:31
npdb.sublime-snippet Nosetest pdb npdb
<snippet>
<content><![CDATA[from nose.tools import set_trace; set_trace()]]></content>
<tabTrigger>npdb</tabTrigger>
<scope>source.python</scope>
<description>Nose pdb</description>
</snippet>
<snippet>
<content><![CDATA[from pudb import set_trace; set_trace()]]></content>
<tabTrigger>pudb</tabTrigger>
<scope>source.python</scope>
<description>Pudb</description>
</snippet>
@seperman
seperman / setup.cfg
Created October 14, 2016 21:38
setup.cfg has setup stuff for a python project. Sublime and others read it apparently.
[flake8]
max-line-length = 120
builtins = json
statistics = true
ignore = E202
exclude = ./data,./src,.svn,CVS,.bzr,.hg,.git,__pycache__
@seperman
seperman / pandolime.py
Created October 29, 2016 23:02
Pandolime
from copy import copy
text = "Hello maddam, how are you daad mamamaml?"
def find_palindromes(text):
i = 0
ir = 0
found = []
for i, v in enumerate(text):
@seperman
seperman / Flake8Lint.sublime-settings
Created November 6, 2017 23:02
flake8 settings for python flake8 lint
{
// debug mode (verbose output to ST python console)
"debug": false,
// run flake8 lint on file saving
"lint_on_save": true,
// run flake8 lint on file loading
"lint_on_load": false,
// run lint in live mode: lint file (without popup) every XXX ms
@seperman
seperman / pdb.sublime-snippet
Created November 7, 2017 19:10
pdb sublime snippet
<snippet>
<content><![CDATA[import pdb; pdb.set_trace()]]></content>
<tabTrigger>pdb</tabTrigger>
<scope>source.python</scope>
<description>pdb</description>
</snippet>