Skip to content

Instantly share code, notes, and snippets.

@whophil
whophil / jupyter.service
Last active October 30, 2023 16:33 — forked from doowon/jupyter_systemd
A systemd script for running a Jupyter notebook server.
# 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
@Mikescher
Mikescher / rapscript.js
Last active August 29, 2015 14:07
[Greasemonkey] Rapla - script ((TINF12B5))
// ==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);
@MaienM
MaienM / cucumbertables.vim
Created October 2, 2011 21:48 — forked from tpope/cucumbertables.vim
Auto-align on equal signs (=) using Tabularize.
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