Skip to content

Instantly share code, notes, and snippets.

tkrotoff /
Last active Sep 28, 2022
Front-end frameworks popularity (React, Vue, Angular and Svelte)

Findings: React is by far the most popular front-end framework/library (and continues to grow faster). In addition, React is more loved and "wanted" than other front-end frameworks (although it is more used: satisfaction tends to decrease with popularity).

Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.

Like this? Check React Native vs Flutter:

Stack Overflow trends

lululau / emacs-mac-title-bar-7.4.patch
Last active Jan 16, 2020
View emacs-mac-title-bar-7.4.patch
diff -Nur mituharu-emacs-mac-fd1cf1f3e757/src/macappkit.m 74/src/macappkit.m
--- mituharu-emacs-mac-fd1cf1f3e757/src/macappkit.m 2018-11-16 17:38:56.000000000 +0800
+++ 74/src/macappkit.m 2018-11-17 23:03:48.000000000 +0800
@@ -2098,6 +2098,18 @@
@implementation EmacsWindow
++ (NSButton *)standardWindowButton:(NSWindowButton)b forStyleMask:(NSWindowStyleMask)styleMask
varmais / thinced.js
Created Oct 1, 2015
Geolocation to Promise wrap example
View thinced.js
var getPosition = function (options) {
return new Promise(function (resolve, reject) {
navigator.geolocation.getCurrentPosition(resolve, reject, options);
.then((position) => {
paulirish /
Last active Sep 28, 2022
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
kmorcinek / git commands.txt
Last active Jan 2, 2022
Git Commands. My common scenarios for using git.
View git commands.txt
# good git book
# Discard uncommitted changes in a specific file
git checkout file_name
# Clear everything not in repo
git checkout -- .
# A way to quickly move to the previous commit in a git branch. This also way for "deleting" last commit.
gre / easing.js
Last active Sep 23, 2022
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity