A cheat sheet for Angular and NX CLI.
# Quick start
npm install -g @angular/cli| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; | |
| @layer base { | |
| *, | |
| *::before, | |
| *::after { | |
| margin: 0; | |
| padding: 0; |
| const scene = new THREE.Scene() | |
| const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000) | |
| const renderer = new THREE.WebGLRenderer() | |
| renderer.setSize(width, height) | |
| document.querySelector('#canvas-container').appendChild(renderer.domElement) | |
| const mesh = new THREE.Mesh() | |
| mesh.geometry = new THREE.BoxGeometry() | |
| mesh.material = new THREE.MeshStandardMaterial() |
| (function (d) { | |
| var w = d.documentElement.offsetWidth, | |
| t = d.createTreeWalker(d.body, NodeFilter.SHOW_ELEMENT), | |
| b; | |
| while (t.nextNode()) { | |
| b = t.currentNode.getBoundingClientRect(); | |
| if (b.right > w || b.left < 0) { | |
| t.currentNode.style.setProperty('outline', '1px dotted red', 'important'); | |
| console.log(t.currentNode); | |
| } |
| <template> | |
| <div v-if="loading"> | |
| <div id="loading-page loaded"> | |
| <div id="loader opzero"> | |
| <div class="particles element"> | |
| <div class="spark1 spark element"> | |
| <div class="particle1 particle element"></div> | |
| </div> | |
| <div class="spark2 spark element"> | |
| <div class="particle2 particle element"></div> |
adapted from this blog
# YAML
name: Jon# YAML
object:| /* Grow Rotate Animation */ | |
| .hvr-grow-rotate { | |
| display: inline-block; | |
| vertical-align: middle; | |
| -webkit-transform: perspective(1px) translateZ(0); | |
| transform: perspective(1px) translateZ(0); | |
| box-shadow: 0 0 1px rgba(0, 0, 0, 0); | |
| -webkit-transition-duration: 0.3s; | |
| transition-duration: 0.3s; | |
| -webkit-transition-property: transform; |
| const express = require('express'); | |
| const morgan = require('morgan'); | |
| const cors = require('cors'); | |
| const app = express(); | |
| app.use(morgan('dev')); | |
| app.use(cors()); | |
| app.get('/', (req, res) => { |