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
<link rel="import" href="/racks/elements/racks.html"> | |
<racks-element name="my-tag"> | |
<style> | |
:host { | |
display: block; | |
} | |
</style> | |
<template> | |
<content></content> | |
</template> |
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
cookie.set('name', 'mmustermann', 2); | |
cookie.get('name'); |
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
<title>Stellwerk. Informatik. HTML. Beispiel. Namics</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<script src="js/jquery.min.js"></script> | |
<script src="js/jquery.scrolly.min.js"></script> | |
<script src="js/jquery.poptrox.min.js"></script> | |
<script src="js/skel.min.js"></script> | |
<script src="js/init.js"></script> |
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
#!/bin/sh | |
ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') | |
echo "\nInstalling Apache WebServer accessible with $ip ..." | |
sudo apt-get install apache2 -y | |
echo "\nInstalling PHP 5.X on $HOSTNAME ..." | |
sudo apt-get install php5 libapache2-mod-php5 -y |
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
#!/bin/sh | |
echo "You have to be the root user to execute this script!" | |
echo "What is your OS?" | |
echo "1 OpenSuSE" | |
echo "2 Ubuntu" | |
echo "3 RedHat" | |
echo "4 Debian" | |
echo "5 Go Back" | |
echo "6 Quit" |
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
<?php | |
// Get content from the DB | |
function readDatabase($path) { | |
return (array)json_decode(file_get_contents($path)); | |
} | |
// Save content to the DB | |
function saveDatabase($path, $content) { | |
file_put_contents($path, json_encode($content)); |
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
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600); | |
* { | |
box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
} | |
html, | |
body, |
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
(function(window, undefined) { | |
var defineSingleEventListener = function(element, event, callback) { | |
try { | |
if(element.attachEvent) { | |
return element.attachEvent('on' + event, callback); | |
} else { | |
return element.addEventListener(event, callback, false); | |
} | |
} catch(e) { |
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
(function(window, undefined) { | |
var strEq = function(str1, str2) { | |
return str1.toLowerCase() === str2.toLowerCase(); | |
}; | |
var ajaxRequest = function(method, opts) { | |
opts = opts ? opts : {}; | |
opts.data = opts.data || null; | |
opts.success = opts.success || function() { }; |
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
#!/bin/bash | |
# for each md file in the directory | |
for file in *.md | |
do | |
# convert each file to html and place it in the html directory | |
# --gfm == use github flavoured markdown | |
marked -o pages/$file.html $file --gfm | |
done |