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
# re-bind prefix command to ` | |
unbind C-b | |
set -g prefix ` | |
bind ` send-prefix | |
# Shortcat to synchronize panes | |
bind e setw synchronize-panes on | |
bind E setw synchronize-panes off | |
# Bind ctrl+k for clear buffer |
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 wraps | |
from time import time | |
from datetime import datetime | |
# Python 3 | |
def measure(method): | |
@wraps(method) | |
def wrapper(*args, **kwargs): | |
mname = method.__name__ | |
s = time() |
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
[mergetool "vsmerge"] | |
path = C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/vsDiffMerge.exe | |
cmd = \"C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/vsDiffMerge.exe\" /m \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\" | |
trustExitCode = false | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED | |
[mergetool "kdiff3"] |
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
class Calculator(): | |
def __init__(self, s): | |
self._s = s | |
self._i = 0 | |
self._len = len(s) | |
self._err = False | |
def next(self): | |
self._i += 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
{ | |
"template": "index_name_with_joker_*", | |
"settings": { | |
"indices.ttl.interval": "8h", | |
"index.ttl.interval": "8h" | |
}, | |
"mappings": { | |
"LogEventType": { | |
"_timestamp": { | |
"enabled": true, |