Skip to content

Instantly share code, notes, and snippets.

import {
AfterViewInit,
Directive,
ElementRef,
EventEmitter,
Input,
OnDestroy,
Output,
Renderer2,
} from '@angular/core';
@fireonmac
fireonmac / functional_1.ts
Last active March 4, 2023 06:58
functional_1
type Product = {
name: string;
price: number;
}
type ShoppingCart = Product[];
const TAX_RATE = 0.1;
const FREE_SHIPPING_PRICE_THRESHOLD = 20;
const MINIMUM_SHIPPING_COST = 5;
@fireonmac
fireonmac / index.html
Created March 30, 2022 06:15 — forked from redgeoff/index.html
Pinch Zoom And Pan With HammerJS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<title>Pinch Zoom</title>
</head>
<body>