$ uname -r
This file contains hidden or 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
image: alpine | |
cache: | |
paths: | |
- node_modules/ | |
before_script: | |
- DIST_DIR=$([ "$DIST_DIR" ] || echo "./dist") | |
stages: |
This file contains hidden or 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 common\validators; | |
use yii\base\InvalidConfigException; | |
use Yii; | |
use yii\base\Model; | |
use yii\helpers\ArrayHelper; | |
use yii\validators\Validator; | |
class CompositeValidator extends Validator |
This file contains hidden or 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 inUV = function (uv, point) { | |
var x = point.x - uv[0].x; | |
var y = point.y - uv[0].y; | |
var s = (uv[1].x - uv[0].x) * y - (uv[1].y - uv[0].y) * x > 0; | |
if ((uv[2].x - uv[0].x) * y - (uv[2].y - uv[0].y) * x > 0 === s) { | |
return false; | |
} | |
return (uv[2].x - uv[1].x) * (point.y - uv[1].y) - (uv[2].y - uv[1].y) * (point.x - uv[1].x) > 0 === s; | |
}; |
This file contains hidden or 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 {THREE.Mesh} mesh | |
* @param {THREE.Vector2} point | |
* @returns {THREE.Vector3[]} | |
*/ | |
var uvToGlobal = function (mesh, point) { | |
var a, b, c, i, uv, face, uvs, faces, vertices, matrix, matrix2, point3, result; | |
result = []; | |
uvs = mesh.geometry.faceVertexUvs[0]; | |
faces = mesh.geometry.faces; |
This file contains hidden or 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
<div> | |
<span class="tristate tristate-checkbox"> | |
<input type="radio" id="item1-state-off" name="item1" value="-1" checked> | |
<input type="radio" id="item1-state-null" name="item1" value="0"> | |
<input type="radio" id="item1-state-on" name="item1" value="1"> | |
<i></i> | |
<label for="item1-state-null">Выключено</label> | |
<label for="item1-state-on">Не задано</label> | |
<label for="item1-state-off">Включено</label> | |
</span> |