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
# After Ubuntu 16.04, Systemd becomes the default. | |
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd | |
[Unit] | |
Description=Jupyter Notebook | |
[Service] | |
Type=simple | |
PIDFile=/run/jupyter.pid | |
ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py |
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
// ==UserScript== | |
// @name Rapla Highlighter | |
// @namespace https://rapla.dhbw-karlsruhe.de | |
// @include https://rapla.dhbw-karlsruhe.de/* | |
// @version 1 | |
// @require http://code.jquery.com/jquery-latest.js | |
// @grant none | |
// @author Mikescher | |
// ==/UserScript== | |
this.$ = this.jQuery = jQuery.noConflict(true); |
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
inoremap <silent> = =<Esc>:call <SID>ealign()<CR>a | |
function! s:ealign() | |
let p = '^.*=\s.*$' | |
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) | |
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g')) | |
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*')) | |
Tabularize/=/l1 | |
normal! 0 | |
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) | |
endif |