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
/** | |
* Ü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%; } |
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
/** | |
* Vorlage Selektor-Übung | |
*/ | |
a { | |
color:#000; | |
text-decoration:none; | |
} | |
#navi > li:nth-child(odd) > a, | |
#navi > li > ul > li:nth-child(odd) > a{ |
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
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
} | |
div{ | |
float:left; | |
margin-right:70px | |
} | |
.flag1 { | |
background: linear-gradient(40deg, red 40%, white 40%, white 43%, black 43%, black 57%, white 57%, white 60%, red 60%); |
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 | |
/** | |
* ACL Plugin | |
* @package Plugin | |
* @author FlorianX | |
*/ | |
class Plugin_Auth_Acl extends Zend_Acl | |
{ | |
private $_roleRecursionStop = array(); | |
private $_resourceRecursionStop = array(); |
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
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | |
DROP SCHEMA IF EXISTS `mydb` ; | |
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; | |
USE `mydb` ; | |
-- ----------------------------------------------------- | |
-- Table `mydb`.`users` |
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
object Phonebook { | |
var entries = List[Entry]() | |
def += (e: Entry) = { | |
entries ++= List(e) | |
entries = entries.toSet.toList | |
this | |
} | |
/* |
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
localStorage.setItem('SpiritNews', JSON.stringify(data)); |
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
var localNewsJSON = localStorage.getItem('SpiritNews'); |
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
if(typeof localStorage !== 'undefined') |
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
// check if there is data from the localStorage and | |
// whether the data must be fetched live | |
if(localNewsJSON && !live){ | |
// call renderNews with the data from the localStorage | |
renderNews(JSON.parse(localNewsJSON)); | |
}else{ | |
// fetch the news from the REST interface of the news plattform | |
$.ajax({ | |
url: "http://spirit.fh-schmalkalden.de/news", | |
dataType: 'json', |
NewerOlder