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.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
//../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
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
<?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); |
NewerOlder