Skip to content

Instantly share code, notes, and snippets.

@FlorianX
FlorianX / dabblet.css
Created November 7, 2013 13:01 — forked from SirPepe/dabblet.css
Übung Adaptives Layout
/**
* Ü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%; }
@FlorianX
FlorianX / dabblet.css
Created November 6, 2013 15:53 — forked from SirPepe/dabblet.css
Vorlage Selektor-Übung
/**
* Vorlage Selektor-Übung
*/
a {
color:#000;
text-decoration:none;
}
#navi > li:nth-child(odd) > a,
#navi > li > ul > li:nth-child(odd) > a{
@FlorianX
FlorianX / dabblet.css
Last active December 27, 2015 13:29 — forked from anonymous/dabblet.css
Sheldon Cooper Presents: Fun with Flags
* 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%);
@FlorianX
FlorianX / gist:1965947
Created March 3, 2012 12:58
dynamic loaded Zend ACL
<?php
/**
* ACL Plugin
* @package Plugin
* @author FlorianX
*/
class Plugin_Auth_Acl extends Zend_Acl
{
private $_roleRecursionStop = array();
private $_resourceRecursionStop = array();
@FlorianX
FlorianX / gist:1965541
Created March 3, 2012 10:51
dynamic loaded Zend ACL db model
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`
@FlorianX
FlorianX / gist:1278895
Created October 11, 2011 18:14
Übung 1
object Phonebook {
var entries = List[Entry]()
def += (e: Entry) = {
entries ++= List(e)
entries = entries.toSet.toList
this
}
/*
@FlorianX
FlorianX / gist:1263889
Created October 5, 2011 07:45
setItem to localStorage
localStorage.setItem('SpiritNews', JSON.stringify(data));
@FlorianX
FlorianX / gist:1263885
Created October 5, 2011 07:45
getItem from localStorage
var localNewsJSON = localStorage.getItem('SpiritNews');
@FlorianX
FlorianX / gist:1263882
Created October 5, 2011 07:44
check if localStorage API is available?
if(typeof localStorage !== 'undefined')
@FlorianX
FlorianX / gist:1263878
Created October 5, 2011 07:43
der Request
// 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',