This file contains 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
$(this).each(function() { | |
f_el.first().after( | |
$('<label/>').addClass(_invalidFlag) | |
.attr('for', f_el.attr('id')) | |
.text($(this)[0].message) | |
); | |
}); |
This file contains 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 | |
public function __call($name, $arguments) | |
{ | |
if (preg_match('#^findBy(.*)#', $name, $matches)) { | |
$colName = strtolower($this->_filter->filter($matches[1])); | |
return $this->_returnCollection( | |
$this->_table->fetchAll(array($colName . '=?' => $arguments[0])) | |
); | |
} else { |
This file contains 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 | |
/** | |
* YelaCMS | |
* | |
* LICENSE | |
* | |
* This file is part of YelaCMS. | |
* | |
* YelaCMS is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains 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
# Configure throttling on port 8080 and set maximum bandwidth to 56KByte/s | |
$ sudo ipfw pipe 1 config bw 56KByte/s | |
$ sudo ipfw add 1 pipe 1 src-port 8080 | |
# Reset pipe 1: | |
$ sudo ipfw delete 1 |
This file contains 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
#!/bash/sh | |
find . -name "*.png" | |
while read file; | |
do | |
mv "$file" ${file%.*}"@2x.png" | |
done |
This file contains 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 | |
public function isValid($values) | |
{ | |
if (array_key_exists('already_customer', $values) | |
&& $values['already_customer'] == 'on') { | |
$this->getElement('billingfirstname')->setRequired(false); | |
$this->getElement('billinglastname')->setRequired(false); | |
// ... | |
} | |
} |
This file contains 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
page.10 = FLUIDTEMPLATE | |
page.10 { | |
partialRootPath = fileadmin/templates/partials/ | |
layoutRootPath = fileadmin/templates/layouts/ | |
variables { | |
siteInfoColumn < styles.content.get | |
siteInfoColumn.select.where = colPos=1 | |
content < styles.content.get |
This file contains 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 | |
$this->_clients[$i]['id'] = $i; |
This file contains 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
// Initializations. | |
var theQueue = $({}); | |
var elements = [1, 2, 3, 4, 5, 6]; | |
// Loop through all elements and add a function to the stack for every element. | |
$.each(elements, function(index, item) | |
{ | |
theQueue.queue('stack', function(next) | |
{ | |
// Do some processing here.. |
This file contains 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 Konstruktor() | |
{ | |
var privat = 'blubb'; | |
function privateMethode() | |
{ | |
alert (privat); | |
} | |
var anonymeMethode = function() | |
{ |