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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie9" lang="en"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]--> | |
<body></body> | |
</html> |
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
/** | |
* JSON response from controller's action. | |
*/ | |
public function run( ) | |
{ | |
JFactory::getDocument()->setMimeEncoding( 'application/json' ); | |
JResponse::setHeader('Content-Disposition','attachment;filename="progress-report-results.json"'); | |
$data = array( | |
'foo' => 'bar' |
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
describe('run()', function() { | |
var realNextFrame, realCancelFrame; | |
beforeEach(function() { | |
jasmine.clock().install(); | |
jasmine.RequestAnimationFrame.install(); | |
realNextFrame = window.nextFrame; | |
realCancelFrame = window.cancelFrame; | |
window.nextFrame = window.requestAnimationFrame; |
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
describe('findByNavigator()', function() { | |
var geolocator, fnDone, fnFail; | |
beforeEach(function() { | |
geolocator = new Geolocator({language: 'fi'}); | |
}); | |
it('can find user location', function() { | |
var location, address, components; |
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 is module to test. | |
*/ | |
module.exports = { | |
camelCase: function(string) { | |
return string.replace(/-[a-z]/g, function(match) { | |
return match[1].toUpperCase() + match.slice(2); | |
}); | |
}, | |
dashSeparated: function(string) { |
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
// script for endless scrolling using jQuery | |
// demo: http://www.jstoolbox.com/demo/endless/ | |
var engine = { | |
posts : [], | |
target : null, | |
busy : false, | |
count : 5, | |
render : function(obj){ |
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->table()->setCaption('Список записей') | |
->setAttributes(array('class' => 'mytable', 'id' => 'postsList')) | |
->setFooter('<a href="/admin/blog/create">Создать новую запись</a>') | |
->setColumns(array('title' => 'Название','post_author' => 'Автор','edit_options' => '')) | |
->setCellContent('<a href="/admin/blog/edit?id={id}">Редактировать</a>', 'edit_options') | |
->setEmptyRowContent('Пока нет ни одной записи') | |
->setRows($this->posts); ?> | |
<?= $this->table() ?> |
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.prototype.inherits = function(fnParent) { | |
this.prototype.super = fnParent; | |
for (var s in fnParent.prototype) { | |
this.prototype[s] = fnParent.prototype[s]; | |
} | |
return this; | |
} | |
parentClass = function (args) { | |
this._name = ''; |
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
/*! | |
* Ext JS Library 3.3.1 | |
* Copyright(c) 2006-2010 Sencha Inc. | |
* licensing@sencha.com | |
* http://www.sencha.com/license | |
*/ | |
/** | |
* @class Ext.ux.tree.TreeGridNodeUI | |
* @extends Ext.tree.TreeNodeUI | |
*/ |
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 | |
/** | |
* Table View Helper | |
*/ | |
class App_View_Helper_Table extends Zend_View_Helper_Placeholder_Container_Standalone | |
{ | |
/** | |
* @var string registry key | |
*/ |
OlderNewer