This file contains hidden or 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 | |
import scipy | |
def kpca(K, n=2, centering=True): | |
assert K.shape[0] == K.shape[1], "Square matrix required for Kernel PCA." | |
assert np.allclose(K, K.T, atol=1e-8), "Symmetric matrix required for Kernel PCA." | |
# First center kernel. |
This file contains hidden or 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
map <Leader>pt :pintab<CR> | |
map <Leader>ut :unpintab<CR> | |
set noautofocus | |
let mapleader = "," | |
let hintcharacters = "sadfjklewcmpgh" | |
site '*://(soundcloud|(hangouts|mail|inbox|calendar).google|*\.todoist.|*\.messenger).com/*' { | |
call :pintab | |
} | |
let blacklists = ["http://regiosqm.org/*","https://www.messenger.com/*","https://mail.google.com/*","https://drive.google.com/*","http://localhost/*","http://hackertyper.com/*"] |
This file contains hidden or 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
#!/bin/bash | |
curl -LH "Accept: application/x-bibtex;q=1" http://dx.doi.org/$1 | |
echo |