from .foo import Foo
from .bar import Bar
foo = Foo()
bar = Bar()
# this enables "import *"
__all__ = [
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 random | |
| # ... | |
| class Example: | |
| staticVariable = "baz" | |
| def __init__(self): |
- Install local addon:
chrome://extensions> Load packed extension > Choose folder with extension files in it - Reload local addon:
chrome://extensions> Reload icon - Addon for fast reload: Extensions Reloader
- https://www.apachefriends.org/de/index.html
chmod 755 xampp-linux-*-installer.runsudo ./xampp-linux-*-installer.runsudo /opt/lampp/lampp startsudo /opt/lampp/lampp stop- optional
sudo /opt/lampp/manager-linux-x64.runsudo /opt/lampp/lampp restart
sudo nano /opt/lampp/etc/php.ini
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
| /* this ensures that ctrl+links open in a new window */ | |
| var ctrlPressed = false; | |
| window.addEventListener('keydown', e => { | |
| if (e.metaKey || e.ctrlKey || e.key === 'Control' || e.key === 'Meta') { | |
| ctrlPressed = true; | |
| } | |
| }); | |
| window.addEventListener('keyup', e => { | |
| if (e.metaKey || e.ctrlKey || e.key === 'Control' || e.key === 'Meta') { | |
| ctrlPressed = false; |
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
| <?php | |
| /* problem */ | |
| $array = ['a' => 1, 'b' => 2, 'c' => 3]; | |
| foreach ($array as $array__key => $array__value) { | |
| echo 'iterating over '.$array__key."\n"; | |
| if ($array__value === 2) { | |
| unset($array['c']); | |
| } | |
| } | |
| // iterating over a |
sudo mv /etc/apt/preferences.d/nosnap.pref ~/Dokumente/nosnap.backupsudo apt updatesudo apt install snapd- Terminal neustarten
sudo snap install snap-store- Linux neustarten
- Snap Store > NextCloud
sudo snap set nextcloud ports.http=8081sudo snap set nextcloud ports.https=8443sudo snap restart nextcloud
mkdir testcd testgit clone [email protected]:vielhuber/test.git .# clone empty repository- create
.gitignore,README.MD,index.html,index.md - follow
README.MD
cd test
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
| @view-transition { | |
| navigation: auto; | |
| } | |
| @keyframes fade-in { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes fade-out { |
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
| div { | |
| height:100svh; /* fixed, no jumps */ | |
| margin-bottom: calc(100lvh - 100svh); /* nice margin below, if nav is hidden */ | |
| } |