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
delta = new t.Vector3( | |
- e.pageX + coords.x, | |
e.pageY - coords.y, | |
vector.z | |
); | |
vector.add(delta); | |
camera.lookAt(vector); | |
renderer.render( scene, camera ); |
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
AddDefaultCharset utf8 | |
Options -Indexes | |
DirectoryIndex index.php index.html index.htm | |
Options +FollowSymlinks | |
ErrorDocument 404 / | |
# mod_rewrite settings | |
RewriteEngine on |
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 ComponentA = Component.extend({ | |
param1: 'aaa', | |
f1: function(){ | |
console.log(this.param1); | |
} | |
}), ComponentB = ComponentA.extend({ | |
param1: 'bbb', | |
param2: 'bbbb', | |
f2: function(){ | |
this.f1(); |
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 | |
/** | |
* @link http://www.yiiframework.com/ | |
* @copyright Copyright (c) 2008 Yii Software LLC | |
* @license http://www.yiiframework.com/license/ | |
*/ | |
namespace app\assets; | |
use yii\web\AssetBundle; |
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 | |
namespace app\backend; | |
use yii\filters\AccessControl; | |
use Yii; | |
class module extends \yii\base\Module | |
{ | |
public $controllerNamespace = 'app\backend\controllers'; |
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 file is part of the php4fun package. | |
* | |
* (c) Aleh Kashnikau <[email protected]> | |
* | |
* Created: 22/07/2014 3:31 PM | |
*/ | |
class YieldTest{ |
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 file is part of the core package. | |
* | |
* (c) Aleh Kashnikau <[email protected]> | |
* | |
* Created: 28/06/2014 2:34 PM | |
*/ | |
namespace Core\TasksBundle\Worker; |
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 file is part of package | |
* | |
* (c) Aleh Kashnikau <[email protected]> | |
* | |
* Created: 7/25/14. | |
*/ | |
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); |
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 | |
function МояФункция(){ | |
echo "Test"; | |
} | |
$abc = "Test"; | |
$абс = "Test"; | |
var_dump($abc, $абс); |
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
$('.answer-button').click(function(){ // вешаем событие на все кнопки .answer-button | |
var answer = $(this).data('value'); // теперь у нас в data-value значение, которое в кнопке висит | |
$('#answer_math').mathquill('write', answer); //заполним поле с ответом | |
submitAnswer(); // тогда все просто | |
}); |