Skip to content

Instantly share code, notes, and snippets.

View rnixik's full-sized avatar

Roman Nix rnixik

View GitHub Profile
@rnixik
rnixik / deploy.php
Created February 19, 2020 08:42
Deployment script for Laravel applications with docker-compose
<?php
/*
* Deployment script for Laravel applications with docker-compose.
*
* Features:
* * Zero-downtime deployment with jwilder/nginx-proxy
* * Independent several instances of the same project on one host
* * Configurable shared .env file
* * Ready for CI / CD
@rnixik
rnixik / cube_hotizontal_cross_uvs
Created January 29, 2016 15:16
UV coordinates of horizontal cross atlas for CubeGeometry in three.js
var assignUVs = function( geometry ){
var tileUsize = 0.25;
var tileVsize = 0.333;
/*
* lookup-tables for tiles: the number - is offset in size of the tile.
* ..., 1, 2, ... means new THREE.Vector2(tileUsize, 2 * tileVsize)
*
* Each tile in atlas is
* (x3, y3) -- (x2, y2)