Skip to content

Instantly share code, notes, and snippets.

View 488n235e's full-sized avatar
🔮
Witchcrafting

488n235e

🔮
Witchcrafting
View GitHub Profile
import {
Controller, Get, Delete, Param, HttpCode, Patch, Body, Req, UseGuards, Next
} from '@nestjs/common';
import {UsersService} from '@services';
import {UserValidationPipe, UserValidatorPipeOptions} from '@pipes';
import {UserDto} from '@dtos';
import {NextFunction, Request} from 'express';
import {AuthGuard} from '@guards';
import {ObjectID} from 'bson';

CREATE

Clone an existing repository

git clone ssh://[email protected]/repo.git

Create a new local repository

git init

LOCAL CHANGES

const AABB = {
collide: (el1, el2) => {
const rect1 = el1.getBoundingClientRect();
const rect2 = el2.getBoundingClientRect();
return !(
rect1.top > rect2.bottom
|| rect1.right < rect2.left
|| rect1.bottom < rect2.top
|| rect1.left > rect2.right