Skip to content

Instantly share code, notes, and snippets.

View Julien-Marcou's full-sized avatar
🧗‍♂️
Climbing

Julien Marcou Julien-Marcou

🧗‍♂️
Climbing
View GitHub Profile
@Julien-Marcou
Julien-Marcou / ecmascript.md
Last active October 15, 2024 16:55
ECMAScript Support

ECMAScript Support (as of October 29, 2022)

Global support of es2023 since:

  • Chrome v97 (January 4, 2022)
  • Edge v97 (December 1, 2021)
  • Safari v15.4 (March 14, 2022)
  • Safari on iOS v15.4 (March 14, 2022)
  • Opera v83 (January 19, 2022)
  • Firefox v104 (June 23, 2022)
@Julien-Marcou
Julien-Marcou / app.component.ts
Created July 2, 2022 12:22
Bezier Curve Simulator
import { Component, OnInit } from '@angular/core';
const FULL_CIRCLE = Math.PI * 2;
type BezierCoefficients = {
c1: number;
c2: number;
c3: number;
c4: number;
};
@Julien-Marcou
Julien-Marcou / zone-flags.ts
Last active June 16, 2022 11:52
Zone.js optimization
/* eslint-disable no-underscore-dangle */
(window as ZoneGlobalConfigurations).__Zone_disable_customElements = true;
(window as ZoneGlobalConfigurations).__Zone_disable_canvas = true;
(window as ZoneGlobalConfigurations).__Zone_disable_geolocation = true;
(window as ZoneGlobalConfigurations).__Zone_disable_blocking = true;
(window as ZoneGlobalConfigurations).__Zone_disable_MutationObserver = true;
(window as ZoneGlobalConfigurations).__Zone_disable_FileReader = true;
const disabledEvents: Array<keyof HTMLElementEventMap | keyof WindowEventHandlersEventMap | keyof WebSocketEventMap | keyof XMLHttpRequestEventTargetEventMap> = [
// Scroll