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
/** | |
* | |
* @param {T.LoadMore.Par} par | |
* @constructor | |
*/ | |
T.LoadMore = function(par){ | |
this.nextPageUrl = par.nextPageUrl; | |
this.node = par.node; | |
this.id = this.node.id; | |
this.autoLoads = par.autoLoads || 3; |
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 | |
if (!defined("ROOT")) { | |
include('config.inc'); | |
include('db.inc'); | |
} | |
// Section loader | |
if(isset($_GET['section']) && $_GET['section'] != ''){ | |
include $_GET['section'] . '.php'; | |
} |
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 () { | |
'use strict'; | |
var List = Class({ | |
/** | |
* @type {Array<string>} | |
*/ | |
_items: [], | |
/** |
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(){ // namespace (ignore) | |
// bez priv var | |
var Simple = Class( | |
/** | |
* @lends {Simple#} | |
*/ | |
{ | |
__NAME:'Simple', |
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
javascript:(function () { | |
var search = prompt('Ko meklēt?'); | |
if (!search) { | |
return; | |
} | |
var parsedCompanies = {}; | |
var results = []; | |
var pendingRequests = 0; |
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
class AwesomeWrongApiWrapper | |
{ | |
const COMPANIES = [ | |
// | |
]; | |
private function invalidate() | |
{ | |
foreach (self::COMPANIES as $companyId) { | |
Cache::forget($this->getPositionKey($companyId)); |
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 | |
interface CacheInterface | |
{ | |
/** | |
* Store a mixed type value in cache for a certain amount of seconds. | |
* Supported values should be scalar types and arrays. | |
* | |
* @param string $key | |
* @param mixed $value |
OlderNewer