Skip to content

Instantly share code, notes, and snippets.

View vaseapinkov's full-sized avatar

vaseapinkov vaseapinkov

View GitHub Profile
@vaseapinkov
vaseapinkov / laracasts-cf.json
Created October 8, 2023 07:21
AWS cloud formation template for cratering a EC2 with access over ports SSH and Web
{
"Resources": {
"VPC": {
"Type": "AWS::EC2::VPC",
"Properties": {
"CidrBlock": "10.0.0.0/16",
"EnableDnsSupport": true,
"EnableDnsHostnames": true
}
},
@vaseapinkov
vaseapinkov / FigureTag.html
Last active October 27, 2020 04:42
Example code snippet of figure tag
<!-- HTML Code using figure tag -->
<figure>
<svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"><title> The Figure Element </title><rect width="100%" height="100%" fill="#55595c"/><text x="50%" y="50%" fill="#eceeef" dy=".3em"> Your image </text></svg>
<figcaption>
<!-- As a bonus see how small tag can be used to describe a picture -->
<small>Figure Tag </small>
</figcaption>
</figure>
<!-- HTML Code without figure tag -->
/** Camera **/
export function initCamera() {
const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 10000);
camera.position.y = 40;
camera.position.x = 0;
return camera;
}