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
" ---------------------------------------------------------------------------- | |
" DiffRev | |
" ---------------------------------------------------------------------------- | |
let s:git_status_dictionary = { | |
\ "A": "Added", | |
\ "B": "Broken", | |
\ "C": "Copied", | |
\ "D": "Deleted", | |
\ "M": "Modified", | |
\ "R": "Renamed", |
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
#! bash | |
# | |
# From: https://askubuntu.com/a/985386 | |
echo -e '\e[1mbold\e[22m' | |
echo -e '\e[2mdim\e[22m' | |
echo -e '\e[3mitalic\e[23m' | |
echo -e '\e[4munderline\e[24m' | |
echo -e '\e[4:1mthis is also underline (new in 0.52)\e[4:0m' | |
echo -e '\e[21mdouble underline (new in 0.52)\e[24m' | |
echo -e '\e[4:2mthis is also double underline (new in 0.52)\e[4:0m' |
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 numpy as np | |
from numpy.lib.format import open_memmap | |
shape = (1, 20, 600, 2160) | |
dtype = np.float32 | |
# Open a memory mapped numpy formatted file for a temporary variable | |
data = open_memmap('temp.npy', dtype = dtype, mode = 'w+', shape = shape) | |
data[:] = np.random.rand(*shape) | |
data.flush() # force write disk |
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
let g:repl_filetype_commands = { | |
\ 'javascript': 'node', | |
\ 'python': 'ipython --no-autoindent', | |
\ } | |
let g:repl_split = 'right' | |
nnoremap <silent> +re :ReplToggle<CR> | |
augroup python |
OlderNewer