Skip to content

Instantly share code, notes, and snippets.

View mkusher's full-sized avatar
🥃
Ballmer's peak searching

Aleh Kashnikaў mkusher

🥃
Ballmer's peak searching
View GitHub Profile
delta = new t.Vector3(
- e.pageX + coords.x,
e.pageY - coords.y,
vector.z
);
vector.add(delta);
camera.lookAt(vector);
renderer.render( scene, camera );
AddDefaultCharset utf8
Options -Indexes
DirectoryIndex index.php index.html index.htm
Options +FollowSymlinks
ErrorDocument 404 /
# mod_rewrite settings
RewriteEngine on
var ComponentA = Component.extend({
param1: 'aaa',
f1: function(){
console.log(this.param1);
}
}), ComponentB = ComponentA.extend({
param1: 'bbb',
param2: 'bbbb',
f2: function(){
this.f1();
<?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;
<?php
namespace app\backend;
use yii\filters\AccessControl;
use Yii;
class module extends \yii\base\Module
{
public $controllerNamespace = 'app\backend\controllers';
<?php
/**
* This file is part of the php4fun package.
*
* (c) Aleh Kashnikau <[email protected]>
*
* Created: 22/07/2014 3:31 PM
*/
class YieldTest{
<?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 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');
<?php
function МояФункция(){
echo "Test";
}
$abc = "Test";
$абс = "Test";
var_dump($abc, $абс);
$('.answer-button').click(function(){ // вешаем событие на все кнопки .answer-button
var answer = $(this).data('value'); // теперь у нас в data-value значение, которое в кнопке висит
$('#answer_math').mathquill('write', answer); //заполним поле с ответом
submitAnswer(); // тогда все просто
});