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
// Datenbank anlegen | |
var request = indexedDB.open('html5', 1); | |
// Änderungs/Erzeugungs-Event | |
request.onupgradeneeded = function(){ | |
console.log('Datenbank angelegt'); | |
var db = this.result; | |
if(!db.objectStoreNames.contains('features')){ | |
store = db.createObjectStore('features', { | |
keyPath: 'key', |
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
# MAC manipulators | |
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
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
/* ~/.config/google-chrome/Default/User StyleSheets/Custom.css */ | |
#-webkit-web-inspector .monospace, | |
#-webkit-web-inspector .source-code { | |
font-size: 14px !important; | |
line-height: 20px !important; | |
} | |
#-webkit-web-inspector .console-formatted-node *, | |
#-webkit-web-inspector .console-formatted-object * { | |
line-height: 22px !important; |
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
/** | |
* Übung 3D-Transformationen | |
*/ | |
/* Umgebende Box */ | |
.wrapper { | |
position: relative; | |
height: 480px; | |
width: 480px; | |
margin: 1em; |
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
/** | |
* Demo CSS-Pseudoklassen-Typen | |
*/ | |
/* :nth-child OHNE Element */ | |
/*#foo :nth-child(2n+1){ color: red; }*/ | |
/* :nth-child MIT Element */ | |
/*#foo span:nth-child(2n+1){ color: red; }*/ |
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
/** | |
* Vorlage Selektor-Übung | |
*/ |
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
/** | |
* Lösung Selektor-Übung | |
*/ | |
/* Wechselnder Hintergrund */ | |
li:nth-child(4n+1) { | |
background: #CCC; | |
} | |
li:nth-child(2n+2) { | |
background: #AAA; |
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
/** | |
* Lösung Flexbox-Übung | |
*/ | |
/* Flexbox auf dem Wrapper macht schönere Margins */ | |
#wrapper { | |
display: flex; | |
flex-direction: column; | |
max-width: 1024px; | |
} |
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
/** | |
* Flexbox-Übung | |
*/ |
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
<!doctype html> | |
<meta charset="utf-8"> | |
<title>Audiospektrum</title> | |
<p> | |
<canvas width="512" height="256" style="border: 1px solid #000" id="Spektrum"></canvas> | |
</p> | |
<p> | |
<audio src="../../audio.mp3" id="Test" controls loop></audio> |