Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.
I've tried to make it as lean and unobtrusive as possible.
errors/AppError.js
| <?php | |
| class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap | |
| { | |
| /** | |
| * (non-PHPdoc) | |
| * @see Shopware_Components_Plugin_Bootstrap::install() | |
| */ | |
| public function install() | |
| { |
| @echo off | |
| SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
| rem add it for all file types | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
| rem add it for folders | |
| @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| @ECHO OFF | |
| SETLOCAL | |
| GOTO:MAIN | |
| REM | |
| REM Info functions start | |
| REM | |
| REM Display version and copyright information | |
| :VERSION |
| # Use envFrom to load Secrets and ConfigMaps into environment variables | |
| apiVersion: apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: mans-not-hot | |
| labels: | |
| app: mans-not-hot | |
| spec: | |
| replicas: 1 |
| # Drain and delete the nodes (for each node you have) | |
| kubectl drain kubenode1 --delete-local-data --force --ignore-daemonsets | |
| kubectl delete node kubenode1 | |
| # Reset the deployment | |
| sudo kubeadm reset | |
| # On each node | |
| ## Reset the nodes and weave |
| ############################################################################ | |
| # | |
| # makefile-autohelp | |
| # | |
| # This file is at : https://tinyurl.com/makefile-autohelp | |
| # also known as : https://gist.github.com/ruittenb/5d2d281237385276f49652b9b9f6d5a1 | |
| ############################################################################ | |
| # DESCRIPTION | |
| # |