This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)
Given the code
| { | |
| "jest": { | |
| "moduleFileExtensions": [ | |
| "js", | |
| "json", | |
| "jsx", | |
| "node", | |
| "coffee" | |
| ], | |
| "preprocessorIgnorePatterns": [ ], |
| /***************************************************************************** | |
| * __ __ _ _ ___ _ | |
| * \ \/ _\ /\/\ (_)_ __ | |_ _ _ / __\ __ ___ ___| |__ | |
| * \ \ \ / \| | '_ \| __| | | | / _\| '__/ _ \/ __| '_ \ | |
| * /\_/ /\ \ / /\/\ \ | | | | |_| |_| | / / | | | __/\__ \ | | | | |
| * \___/\__/ \/ \/_|_| |_|\__|\__, | \/ |_| \___||___/_| |_| | |
| * |___/ | |
| * | |
| * Identifying and Eliminating Code Smells | |
| * |
| #!/usr/bin/env ruby | |
| FORBIDDEN = [ | |
| /\bdebugger\b/, | |
| /\bfuck\b/, | |
| /\bshit\b/, | |
| /\bbitch\b/, | |
| /\bwtf\b/, | |
| /\bconsole\.debug\b/, | |
| /\bLorem\.ipsum\.dolor\.sit\.amet\b/, |
| class LimitedAdminInlineMixin(object): | |
| """ | |
| InlineAdmin mixin limiting the selection of related items according to | |
| criteria which can depend on the current parent object being edited. | |
| A typical use case would be selecting a subset of related items from | |
| other inlines, ie. images, to have some relation to other inlines. | |
| Use as follows:: |