Skip to content

Instantly share code, notes, and snippets.

View huijing's full-sized avatar
🈚
Β―\_(ツ)_/Β―

Chen Hui Jing huijing

🈚
Β―\_(ツ)_/Β―
View GitHub Profile
@faustinoaq
faustinoaq / myAngular.html
Last active October 21, 2025 00:43
Front-end libraries (React, Vue, Angular) and the basic principles of how they work, all in a single file using pure JavaScript (VanillaJS).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Angular from Scratch</title>
<style>
.my-component {
font-family: Arial, sans-serif;
@tomhodgins
tomhodgins / element-queries-articles.md
Last active December 1, 2019 14:16
A list of articles discussing the current state of element/container queries.
@paulirish
paulirish / what-forces-layout.md
Last active November 9, 2025 15:07
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@staltz
staltz / introrx.md
Last active October 26, 2025 03:06
The introduction to Reactive Programming you've been missing
@willurd
willurd / web-servers.md
Last active November 9, 2025 16:49
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000