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
if !has('nvim') | |
finish | |
endif | |
let s:path = expand('<sfile>:p:h') | |
let s:target = 'all' | |
let s:error_path = s:path.'/tmp/errors.json' | |
let s:errors_url = 'https://raw.githubusercontent.com/neovim/doc/gh-pages/reports/clint/errors.json' | |
let g:neomake_make_maker = { |
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
" Requires 'timeoutlen' to be low enough for this to be practical: | |
" set timeoutlen=100 | |
function! s:relative_number_op(key) abort | |
let old_rn = &l:relativenumber | |
let &l:relativenumber = 1 | |
redraw | |
let seq = a:key | |
while 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 typing | |
import inspect | |
import functools | |
def strict_types(func: typing.Callable): | |
"""Decorator for enforcing strict type annotations""" | |
argspec = inspect.getfullargspec(func) | |
ret_type = argspec.annotations.pop('return', None) |
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 sys | |
BLACK = 0 | |
RED = 1 | |
GREEN = 2 | |
YELLOW = 3 | |
BLUE = 4 | |
MAGENTA = 5 | |
CYAN = 6 |
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 os | |
import sys | |
import site | |
if len(sys.argv) == 1: | |
del os.environ['PYTHONSTARTUP'] | |
sys.path.append(site.USER_SITE) | |
try: | |
if 'IPython' in sys.modules: |
OlderNewer