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
// Use with JavaScript Init plugin (https://github.com/ryanpcmcquen/obsidian-javascript-init) | |
var observer = new MutationObserver(function(mutationsList, observer) { | |
mutationsList.forEach(function(mutation) { | |
mutation.addedNodes.forEach(function(addedNode) { | |
addedNode.querySelectorAll('.image-embed').forEach(function(e) { | |
e.parentNode.style["text-align"] = "center"; | |
}); | |
}); | |
}); | |
}); |
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
# Last checked on July 3, 2019 | |
# References: | |
# http://ubuntuhandbook.org/index.php/2017/07/install-python-3-6-1-in-ubuntu-16-04-lts/ | |
# https://yangcha.github.io/CUDA90/ | |
# https://pytorch.org/get-started/locally/ | |
# Install Python3.6 | |
sudo add-apt-repository ppa:jonathonf/python-3.6 | |
sudo apt-get update | |
sudo apt-get install python3.6 |
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
#!/usr/local/bin/python3 | |
## Written in Python 3.6.4 with Jupyter Notebook 5.7.4 and Pexpect 4.6.0, tested on macOS Mojave | |
## Please edit the following six lines (maybe also the shebang above) | |
## Host and login info (use string for password if not authenticated with public key) | |
hostname = "1.1.1.1" | |
username = "user" | |
password = None # "old_fashioned_pwd" | |
ssh_key = None # "/home/user/public-key.pem" |