Skip to content

Instantly share code, notes, and snippets.

View alordiel's full-sized avatar
🛶
Požuri polako

a.vasilev alordiel

🛶
Požuri polako
View GitHub Profile
@sesn
sesn / gist:476e443c9ba5ced76378f7e74e4f7329
Created June 22, 2018 10:16
Configuring PHPCS in Visual Code
1. Insert the following into composer.json:
```json
"require-dev": {
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "^0.13.1"
},
"scripts": {
"post-install-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
@max-mapper
max-mapper / 0.md
Last active February 25, 2024 12:24
JS hoisting by example

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)