Skip to content

Instantly share code, notes, and snippets.

View SirPepe's full-sized avatar

Peter Kröner SirPepe

View GitHub Profile
@SirPepe
SirPepe / dabblet.css
Created May 24, 2013 20:10
Übung 3D-Transformationen
/**
* Übung 3D-Transformationen
*/
/* Umgebende Box */
.wrapper {
position: relative;
height: 480px;
width: 480px;
margin: 1em;
@SirPepe
SirPepe / Custom.css
Last active December 15, 2015 16:48
/* ~/.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;
@SirPepe
SirPepe / .bashrc
Created March 10, 2013 09:25 — forked from jashkenas/.bashrc
# 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'
// 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',
@SirPepe
SirPepe / dabblet.css
Last active October 9, 2015 20:08
Lösung Adaptives Layout
/**
* Lösung Adaptives Layout
*/
* { box-sizing: border-box; }
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; }
#main, footer { clear: both; padding: 1em 0; }
footer { border-top: 1px solid #999; }
#main > section { float: left; width: 65%; }
@SirPepe
SirPepe / dabblet.css
Created September 1, 2012 10:13
Übung Adaptives Layout
/**
* Übung Adaptives Layout
*/
* { box-sizing: border-box; }
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; }
#main, footer { clear: both; padding: 1em 0; }
footer { border-top: 1px solid #999; }
#main > section { float: left; width: 65%; }
@SirPepe
SirPepe / dabblet.css
Created May 25, 2012 13:21
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#foo {
}
@SirPepe
SirPepe / gist:2644038
Created May 9, 2012 12:07
requestAnimationFrame
/* requestAnimationFrame für alle */
var reqAniFra = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function(callback){
setTimeout(callback, 1000 / 60);
}
@SirPepe
SirPepe / dabblet.css
Created May 4, 2012 08:34
Selektives Markieren externer Links
/**
* Selektives Markieren externer Links
*/
/* Externe Links markieren... */
#test1 a[target="_blank"] {
background: yellow;
}
/* ... und die Markierung wieder zurücksetzen */
@SirPepe
SirPepe / dabblet.css
Created May 2, 2012 12:41
Übung CSS Tab-Navigation
/**
* Übung CSS Tab-Navigation
*/
/* Platzierung der Tab-Navigation */
#tab-box {
border: 2px solid #000;
width: 50%;
margin: 0 auto;