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 2, 2012 12:31
Übung CSS3-Pseudoklassen
/**
* Übung CSS3-Pseudoklassen
*/
html, body {
background: #FFF;
}
ul {
font-size: 18px;
@SirPepe
SirPepe / dabblet.css
Created April 6, 2012 10:24
Tab-Navigation mit CSS3-Selektoren
/**
* Tab-Navigation mit CSS3-Selektoren
*/
body {
padding: 2em 0;
}
/* Platzierung der Tab-Navigation */
@SirPepe
SirPepe / dabblet.css
Created March 15, 2012 00:01
Übung Adaptives Layout
/**
* Übung Adaptives Layout
*/
body { padding: 2.5%; }
div { margin: 0 2.5% 2.5%; height: 80px; border-radius: 8px; }
/* Mittleres Layout */
@media screen and (min-width: 500px){
@SirPepe
SirPepe / dabblet.css
Created March 15, 2012 00:00
Übung Adaptives Layout
/**
* Übung Adaptives Layout
*/
body { padding: 2.5%; }
div { margin: 0 2.5% 2.5%; height: 80px; border-radius: 8px; }
/* An's Werk! */
@SirPepe
SirPepe / dabblet.css
Created March 1, 2012 11:17 — forked from michsch/dabblet.css
flexible fluid <figure> and <figcaption>
/**
* flexible fluid <figure> and <figcaption>
*/
html * { font-size:100%; }
body {
background: #efefef;
min-height:100%;
font-size: 85%;
irc = require 'irc'
http = require 'http'
# Client erstellen
bot_name = 'Hixie'
bot_channels = ['#webhonks']
bot = new irc.Client 'irc.freenode.net', bot_name, {
userName: 'hixie'
realName: 'Ein Bot in CoffeeScript',
@SirPepe
SirPepe / .bashrc
Created January 20, 2012 14:41
Git-Branch im Terminal anzeigen
# Git-Branch im Terminal anzeigen und den Lambda-Hacker raushängen lassen
underline=`tput smul`
nounderline=`tput rmul`
bold=`tput bold`
normal=`tput sgr0`
GIT_PS1_SHOWDIRTYSTATE=1
PS1='${bold}λ ${normal}\w$(__git_ps1 " [${underline}%s${nounderline}]") \$ '
@SirPepe
SirPepe / findpos.js
Created November 30, 2011 11:20
FindePos
// Quelle: http://www.quirksmode.org/js/findpos.html
function findPos(obj){
var curleft = 0, curtop = 0;
if(obj.offsetParent){
do {
curleft += obj.offsetLeft;
curtop += obj.offsetTop;
} while(obj = obj.offsetParent);
}
return [curleft, curtop];
var stylus = require('stylus'),
connect = require('connect'),
nib = require('nib');
var basepath = '/..';
var compile = function(str, path){
return stylus(str)
.set('filename', path)
.set('warn', true)
@SirPepe
SirPepe / gist:1307124
Created October 23, 2011 08:54
Fortschritt rockt, CSS3 rockt, Stylus rockt
// Kommentare
#KommentareListe
list-style none
counter-reset kommentare
&:not(:empty)
border-bottom 1px dotted $border
.comment
clear both
border-top 1px dotted $border
&:first-child