Large-scale computing backend for Jupyter notebooks - HTCondor batch job submission and monitoring using the Ganga toolkit
Mentors:
- Ulrik Egede
- Jakub Moscicki
" plugins | |
let need_to_install_plugins = 0 | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
let need_to_install_plugins = 1 | |
endif | |
call plug#begin() | |
Plug 'tpope/vim-sensible' |
""" | |
Open a random CVPR talk (oral or spotlight) in the browser | |
""" | |
import urllib.request, urllib.error | |
import webbrowser | |
import random | |
URL = "http://cvpr2020.thecvf.com/sites/default/files/2020-03/accepted_list_0.txt" |
def install_pdb_handler(): | |
"""Signals to automatically start pdb: | |
1. CTRL+\\ breaks into pdb. | |
2. pdb gets launched on exception. | |
""" | |
import signal | |
import pdb | |
def handler(_signum, _frame): |
# https://stackoverflow.com/questions/6543519/undoing-accidental-git-stash-pop | |
# https://stackoverflow.com/questions/89332/how-to-recover-a-dropped-stash-in-git | |
accepted | |
If you have only just popped it and the terminal is still open, you will still have the hash value printed by git stash pop on screen (thanks, Dolda). | |
Otherwise, you can find it using this for Linux and Unix: | |
git fsck --no-reflog | awk '/dangling commit/ {print $3}' | |
and for Windows: |
def _phase_shift(I, r): | |
bsize, a, b, c = I.get_shape().as_list() | |
X = tf.reshape(I, (bsize, a, b, r, r)) | |
X = tf.transpose(X, (0, 1, 2, 4, 3)) # bsize, a, b, 1, 1 | |
X = tf.split(1, a, X) # a, [bsize, b, r, r] | |
X = tf.concat(2, [tf.squeeze(x, [1]) for x in X]) # bsize, b, a*r, r | |
X = tf.split(1, b, X) # b, [bsize, a*r, r] | |
X = tf.concat(2, [tf.squeeze(x, [1]) for x in X]) # bsize, a*r, b*r | |
return tf.reshape(X, (bsize, a*r, b*r, 1)) |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
{0: 'tench, Tinca tinca', | |
1: 'goldfish, Carassius auratus', | |
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
3: 'tiger shark, Galeocerdo cuvieri', | |
4: 'hammerhead, hammerhead shark', | |
5: 'electric ray, crampfish, numbfish, torpedo', | |
6: 'stingray', | |
7: 'cock', | |
8: 'hen', | |
9: 'ostrich, Struthio camelus', |
# based on the following: | |
# http://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/ | |
# http://blog.caplin.com/2013/09/18/merging-two-git-repositories/ | |
git clone repo_main | |
git clone repo_sub | |
cd repo_main | |
git remote add repo_sub ../repo_sub | |
git fetch repo_sub |
// 4 spaces to 2 spaces | |
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g | |
// Tab to 2 spaces | |
:%s/\t/ /g |