Skip to content

Instantly share code, notes, and snippets.

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 / 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%;
@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 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 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 May 2, 2012 12:31
Übung CSS3-Pseudoklassen
/**
* Übung CSS3-Pseudoklassen
*/
html, body {
background: #FFF;
}
ul {
font-size: 18px;
@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;
@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 / 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 25, 2012 13:21
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#foo {
}