Skip to content

Instantly share code, notes, and snippets.

View everget's full-sized avatar
🎯
Focusing

Alex Orekhov everget

🎯
Focusing
View GitHub Profile
@everget
everget / js_feature_detection.md
Last active December 18, 2024 15:27
Summary of JavaScript feature detection techniques

Member in object

Check whether a certain method or property (typically an entry point into using the API or other feature you are detecting for) exists in its parent Object

Check if a certain property exists on a global object (such as window or navigator)

if("geolocation" in navigator) { ... }
@everget
everget / javascript_operator_precedence.md
Last active December 18, 2024 15:40
JavaScript Operator Precedence
Value Operator Description Example
19 ( ) Expression grouping (3 + 4)
18 . Member person.name
18 [] Member person["name"]
17 () Function call myFunction()
17 new Create new Date()
16 ++ Postfix Increment i++
16 -- Postfix Decrement i--
15 ++ Prefix Increment ++i
@everget
everget / ArrayScript.js
Last active October 12, 2024 17:31
The new look at scripting process...
// ArrayScript...or as I would have nothing to do
let testSuite = [
'Awesome',
'epic fail',
'remember,remember',
'to be or not to be...',
'DealerPoint is awesome...',
'The best code is the one that doesn`t exist...',
'Whatever the mind can conceive and believe, the mind can achieve. — Napoleon Hill',
@everget
everget / grouping-css-props.md
Last active January 12, 2017 16:51
CSS Properties grouping order

CSS Properties grouping order

The useful technique for CSS styling... This technique eliminates the need to spend your time for searching properties in alphabethical order

Why?

  • CSS-properties are composed by the role each of them provides, not in alphabethical order (famous wrong practices);

  • You haven't to waste your time finding CSS property in an alphabethical garbage;

  • So, your eyes don't work a needless job.

@everget
everget / js_bitwise_hacks.md
Last active April 2, 2025 22:43
A comprehensive guide to advanced bitwise manipulation techniques in JavaScript, featuring concise code snippets demonstrating clever bit-level operations for solving various programming challenges.