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 defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Cron_Gearman_Worker extends Controller_Cron { | |
public function action_run() | |
{ | |
$worker = new GearmanWorker(); | |
$worker->addServer(Kohana::$config->load('gearman.host'), Kohana::$config->load('gearman.port')); | |
$methods = get_class_methods($this); |
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
var allowedLanguages = ['ru', 'uk']; | |
var language = 'ru'; | |
if (navigator.languages) { | |
for (let lang of navigator.languages) { | |
if (allowedLanguages.indexOf(lang) > -1) { | |
language = lang; | |
break; | |
} | |
} | |
} else if (navigator.language) { |
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
//../config/environment.js | |
/* jshint node: true */ | |
module.exports = function (environment) | |
{ | |
var ENV = { | |
modulePrefix: 'realtor', | |
environment: environment, | |
baseURL: null, | |
locationType: 'hash', |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
/* jshint node: true */ | |
//noinspection NpmUsedModulesInstalled | |
import Ember from 'ember'; | |
import ENV from 'your-project-name/config/environment'; | |
import nwENV from 'your-project-name/nw/env'; | |
export default Ember.Service.extend({ | |
nwENV, | |
ENV, |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ["person-card"] | |
}); |
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
/** | |
* Put this code in <head> tag. 'UA-XXXXX-Y' should be replaced with the property ID (also called the "tracking ID") | |
* of the Google Analytics property you wish to track. Also you may wish to change text and remove | |
* `ga('set', 'anonymizeIp', true);` line from `initGac` function. Style user notice with css. | |
* | |
* Please note that when user clicks "Disable cookies" this script removes google analytics' cookies and adds | |
* cookie with name `_gac_consent_`. It doesn't store any user data, just 'allow' or 'disable' string. This is | |
* needed to store user's answer. You may want to inform users about that in your Cookie Policy. | |
*/ |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
line1: "Say Hi!", | |
line2: "Say Yeah!", | |
changeAction(newAction) { | |
switch (newAction) { | |
case "1": |
OlderNewer