Skip to content

Instantly share code, notes, and snippets.

Focusing on Information Retrieval, Search, Personalization and Data ETLs.

Sep Dehpour seperman

Focusing on Information Retrieval, Search, Personalization and Data ETLs.
View GitHub Profile
View react_question.js
// history.js
import { createBrowserHistory } from 'history';
export default createBrowserHistory();
// menu.js
import history from '../history';
const VerticalMenu = props => {
seperman / Default (Linux).sublime-keymap
Created Jan 27, 2020
Sublime keybinding for Ubuntu
View Default (Linux).sublime-keymap
{ "keys": ["ctrl+shift+right"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+shift+left"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["super+/"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+super+/"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+g"], "command": "find_next" },
{ "keys": ["ctrl+shift+g"], "command": "find_prev" },
{ "keys": ["alt+ctrl+i"], "command": "find_under" },
{ "keys": ["shift+alt+ctrl+g"], "command": "find_under_prev" },
{ "keys": ["super+shift+up"], "command": "swap_line_up" },
View pry.sublime-snippet
<content><![CDATA[require 'pry'; binding.pry]]></content>
View pdb.sublime-snippet
<content><![CDATA[import pdb; pdb.set_trace()]]></content>
seperman / Flake8Lint.sublime-settings
Created Nov 6, 2017
flake8 settings for python flake8 lint
View Flake8Lint.sublime-settings
// 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
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 / setup.cfg
Created Oct 14, 2016
setup.cfg has setup stuff for a python project. Sublime and others read it apparently.
View setup.cfg
max-line-length = 120
builtins = json
statistics = true
ignore = E202
exclude = ./data,./src,.svn,CVS,.bzr,.hg,.git,__pycache__
View pudb.sublime-snippet
<content><![CDATA[from pudb import set_trace; set_trace()]]></content>
seperman / npdb.sublime-snippet
Last active Aug 15, 2016
npdb.sublime-snippet Nosetest pdb npdb
View npdb.sublime-snippet
<content><![CDATA[from import set_trace; set_trace()]]></content>
<description>Nose pdb</description>
seperman / preferences.sublime-settings
Last active Aug 19, 2020
sublime settings user mac
View preferences.sublime-settings