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
<center> | |
<iframe id="videoframe" width="560" height="315" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
<script type="text/javascript"> | |
var segment_str = window.location.pathname; | |
var segment_array = segment_str.split( '/' ); | |
var last_segment = segment_array.pop(); | |
document.getElementById('videoframe').src = 'https://www.youtube.com/embed/' + last_segment; | |
</script> | |
</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
shopt -s expand_aliases | |
# load in your custom fzf extensions | |
if [ -f ~/.bash_fzf ]; then | |
. ~/.bash_fzf | |
fi | |
alias srv='python -m http.server' | |
alias erc='vim ~/.bash_aliases' |
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
""" | |
Usage: python remove_output.py notebook.ipynb | |
Modified from remove_output by Minrk | |
Modified from remove_output by mathematicalmichael | |
""" | |
import sys | |
import io | |
import os | |
from nbformat import read, write, NO_CONVERT |
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 a base Debian image | |
FROM debian:latest | |
# Define an argument for the repository URL | |
ARG REPO_URL=http://localhost:9221 | |
# Replace default Debian repository with a local mirror | |
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak \ | |
&& sed -i "s|http://deb.debian.org/debian|${REPO_URL}/debian|g" /etc/apt/sources.list \ | |
&& sed -i "s|http://security.debian.org/debian-security|${REPO_URL}/debian-security|g" /etc/apt/sources.list |