Skip to content

Instantly share code, notes, and snippets.

View moiseyev's full-sized avatar

Alexander Moiseyev moiseyev

View GitHub Profile
@royriojas
royriojas / why-I-love-Javascript.md
Last active September 30, 2020 13:58
Why I love Javascript

Why I love Javascript

  1. Because it has a humble origin... Designed in 10 days... was proclaimed death several times, and it was planned to be replaced by many other more "powerful" languages

  2. Because it has closures and lambdas, and the prototypal inheritance (the good parts)

  3. Because it is weird, in a very nice sense... (some bad parts... maybe?)

From the video WAT (https://www.destroyallsoftware.com/talks/wat)

@oussamahamdaoui
oussamahamdaoui / devtools-detect.js
Last active January 29, 2024 10:04
Detect devtools open and close events tested on Chrome and Safari
(function() {
'use strict';
const el = new Image();
let consoleIsOpen = false;
let consoleOpened = false;
Object.defineProperty(el, 'id', {
get: () => {
consoleIsOpen = true;
}