Skip to content

Instantly share code, notes, and snippets.

Peter Kröner SirPepe

Block or report user

Report or block SirPepe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View grab.js
// Benötigt PhantomJS. Benutzung: $ phantomjs grab.js
var page = require('webpage').create();
page.viewportSize = {
width: 10000, // A0: 9933
height: 15000 // A0: 14043
};
page.open('http://localhost/~peter/map/map.html', function(){
setTimeout(function(){
@SirPepe
SirPepe / dabblet.css
Created May 4, 2015
Lösung Adaptives Layout
View dabblet.css
/**
* 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 May 4, 2015
Übung Adaptives Layout
View dabblet.css
/**
* Ü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 / inbox.js
Created Jul 8, 2014
Lights up an led when there's unread mail
View inbox.js
/* usage: node inbox.js -u username@server.com -p hunter2 */
var Q = require('q');
var minimist = require('minimist');
var inbox = require('inbox');
var Five = require("johnny-five");
function handleError(err){
console.error(err);
View Gruntfile.js
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.loadNpmTasks('grunt-contrib');
@SirPepe
SirPepe / dabblet.css
Created Nov 11, 2013
Unter-Überschriften in Dachzeilen verwandeln (breite Version)
View dabblet.css
/**
* Unter-Überschriften in Dachzeilen verwandeln (breite Version)
*/
header {
display: flex;
flex-direction:column-reverse;
}
@SirPepe
SirPepe / dabblet.css
Created Nov 11, 2013
Unter-Überschriften in Dachzeilen verwandeln
View dabblet.css
/**
* Unter-Überschriften in Dachzeilen verwandeln
*/
header {
display: flex;
flex-direction:column-reverse;
}
@SirPepe
SirPepe / dabblet.css
Created Aug 14, 2013
Vorhang-Effekt (Lösung)
View dabblet.css
/**
* Vorhang-Effekt (Lösung)
*/
/* Container */
#Box {
position: relative;
background:blue;
color: blue;
text-align: center;
View dabblet.css
/**
* Vorhang-Effekt
*/
View verlosung.js
var names = [
'ThomasP',
'christian',
'Bruno',
'Sascha',
'André',
'Robert',
'claudius',
'gewe',
'Carsten',
You can’t perform that action at this time.