Skip to content
/**
* @author Marco Bunge <marco_bunge@web.de>
* @copyright 2015 Marco Bunge http://marco-bunge.de
* @licence MIT http://opensource.org/licenses/MIT
*
* Get in touch and follow me at twitter http://twitter.com/makk_eightbit! Thank you!
*
* Adjust element to an aspect ratio based on height or width.
* Default aspect ratio is 16:9 (tv)
* Usage:
/**
* @author Marco Bunge <marco_bunge@web.de>
* @copyright 2015 Marco Bunge http://marco-bunge.de
* @licence MIT http://opensource.org/licenses/MIT
*
* Get in touch and follow me at twitter http://twitter.com/makk_eightbit! Thank you!
*
* Inversion of control for dom elements.
* Allows you to bind custom logic, plugins, etc. to a dom element.
* The binding is referencing passed data attributes.
<?php
/**
* @author Marco Bunge <marco_bunge@web.de>
* @copyright 2015 Marco Bunge
* Get in touch and follow at twitter http://twitter.com/makk_eightbit! Thank you!
*/
/**
* Class Input
*/
//Plain method
var numberFormat = function (number, decPlaces, decSeparator, thouSeparator) {
decPlaces = isNaN(decPlaces = Math.abs(decPlaces)) ? 2 : decPlaces;
decSeparator = decSeparator == undefined ? "." : decSeparator;
thouSeparator = thouSeparator == undefined ? "," : thouSeparator;
var roundAndReduceDecimals = function (num, length) {
return Math.round(num * Math.pow(10, length)) / Math.pow(10, length);
};
var gulp = require('gulp');
var sys = require('sys');
var gutil = require('gulp-util');
var exec = require('gulp-exec');
gulp.task('phpunit', function() {
gulp.src('./tests').pipe(
exec('phpunit --bootstrap tests/bootstrap.php -c tests/phpunit.xml tests/', function(error, stdout){
sys.puts(stdout);
return false;
<?php
class ImpEx {
private $data = null;
private $rawData = null;
private $processData = null;
private $profiles = null;
const CSV_DELIMITER = ',';
const CSV_DELIMITER_EXCEL = ';';
var loadJsFile = function (filename) {
var fileref = document.createElement('script')
fileref.setAttribute("type", "text/javascript")
fileref.setAttribute("src", filename)
if (typeof fileref != "undefined") {
document.getElementsByTagName("head")[0].appendChild(fileref)
}
}
/*-----------------------------------------------------
Nextlevel Gridssystem - XGS
by Marco Bunge of rubymatrix.de <marco.bunge@rubymatrix-de>.
Based on 960gs (http://960.gs)
SASS Core
-------------------------------------------------------*/
/* Grid Settings
---------------------------*/
<?php
class View {
public function throwException($message){
throw new Exception($message);
}
public function getPagesBySection($targetSection,$targetFolder,$decoratorCallback=null){
<?php
interface Bootstrap {
public function setBootstrapper(Bootstrapper $object);
public function registerTask($name, $callable);
public function getTasks();
}
interface Bootstrapper {
public function setParam($name,$value);
Something went wrong with that request. Please try again.