Assuming you are on your virtual environment:
pip install ipykernel
python -m ipykernel install --user --name venvname --display-name "Python (venvname)"
# run `jupyter kernelspec uninstall venvname` to remove it afterwards
Assuming you are on your virtual environment:
pip install ipykernel
python -m ipykernel install --user --name venvname --display-name "Python (venvname)"
# run `jupyter kernelspec uninstall venvname` to remove it afterwards
#!/bin/bash | |
# change data/ for your folder name or . for current | |
# change +50M for the file size you want to ignore | |
find data/ -size +50M | cat >> .gitignore |
[Desktop Entry] | |
# Note that this is not a complete launcher entry | |
# make sure you modify the Exec parameter of your launcher like this example | |
Exec=sh -c "YOURVAR=yourpathorvalue /usr/bin/yourApp" |
?print-pdf
. Example:https://127.0.0.1/presentation.slides.html?print-pdf
Print...
, then select Print to File
and finally click the Print
button.to_remove
to all cells you don't want the code to be shown on your presentation.jupyter nbconvert presentation.ipynb --to slides --no-prompt --TagRemovePreprocessor.remove_input_tags={\"to_remove\"} --post serve --SlidesExporter.reveal_theme=simple
Assuming you have adb
installed in your OS, your Android phone is connected to it via USB, debugging is enabled, and you can see your phone running adb devices
.
Open your terminal and run:
adb shell pm list packages |grep AppName
This will show you something like package:/path/to/your/app.apk
Without |grep AppName
or the search filter you use it will list all installed Apps.
Finally, just run:
def switch_case(value): | |
return { | |
0: 'case for 0', | |
1: 'case for 1', | |
2: 'case for 2', | |
# ... | |
}[value] | |
result = switch_case(value_to_evaluate) |
[tuning] | |
ForceDefaultTimestamps = 1 |
# assuming you have ncurses installed on your system | |
PS1="\[$(tput setaf 6)\][\d \A]\[$(tput bold)\]\[$(tput setaf 2)\] \u\[$(tput setaf 0)\]@\[$(tput setaf 3)\]\h \[$(tput setaf 4)\]\w\[$(tput bold)\]\[$(tput setaf 2)\] \\$\[$(tput sgr0)\] " |
# assuming you have ncurses installed on your system | |
PS1="\[$(tput setaf 6)\][\d \A]\[$(tput bold)\]\[$(tput setaf 1)\] \u\[$(tput setaf 2)\]@\[$(tput setaf 3)\]\h \[$(tput bold)\]\[$(tput setaf 4)\]\w\[$(tput bold)\]\[$(tput setaf 1)\] \\$\[$(tput sgr0)\] " |