A PHP extension that allows you to:
- walk through your code by Remote Debugging
- find bottlenecks in your application by Profiling
- find Code Coverage in a single request
- trace your application by logging all function calls
| <?php | |
| use Carbon\CarbonImmutable; | |
| class PaymentScheduleCalculator { | |
| /** | |
| * add an implementation here that calculates a payment schedule, returned as an array | |
| * of CarbonImmutable dates and float amounts | |
| * @return array<array{date: CarbonImmutable, amount: float}> | |
| */ |
| /*! | |
| * es-module implementation of anguljar-toast by sibiraj | |
| * @module angularjs-toast | |
| * @description A Simple toast notification service for AngularJS pages | |
| * @version v4.0.2 | |
| * @link https://github.com/sibiraj-s/angularjs-toast#readme | |
| * @licence MIT License, https://opensource.org/licenses/MIT | |
| */ | |
| /** @param {ng.ITemplateCacheService} $templateCache */ |
| /** | |
| * @param {Element} node | |
| * @returns {node is HTMLLinkElement} | |
| */ | |
| function isLink (node) { // @ts-ignore | |
| return node.tagName === 'LINK' && node.rel === 'stylesheet' | |
| } | |
| /** | |
| * @param {Element} node | |
| * @returns {node is HTMLStyleElement} |
| function jqueryLogDecoratorInstaller () { | |
| console.log('Decorating jQuery methods with logging'); | |
| const install = (name, oldMethod) => { | |
| $.fn[name] = function () { // cannot be shorthand | |
| console.log(`${this.selector}.${name}(${Array.from(arguments).toString()})`); | |
| return oldMethod.apply(this, arguments); | |
| }; | |
| }; |
| # Turn on Notifications | |
| do shell script "defaults -currentHost write com.apple.notificationcenterui doNotDisturb -bool FALSE; defaults -currentHost delete com.apple.notificationcenterui doNotDisturbDate; osascript -e 'quit application \"NotificationCenter\" ' && killall usernoted" -- this set 'Do not disturb' to false in the pref | |
| # Show Desktop | |
| do shell script "defaults write com.apple.finder CreateDesktop -bool true; killall Finder" | |
| # Show all windows | |
| tell application "System Events" | |
| set visible of (every process) to true | |
| end tell |
| #!/bin/bash | |
| # | |
| # Copyright 2017-2018 Martin Goellnitz | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| ((root, factory, has, name) => { | |
| if (!has.call(root, name)) root[name] = factory(); | |
| })(this || window, () => { | |
| const consoleColors = { | |
| default: "rgb(189, 198, 207)", | |
| alert: "rgb(210, 70, 70)", | |
| background: "rgb(64, 64, 64)", | |
| info: "rgb(70, 140, 210)", | |
| success: "rgb(35, 140, 35)", | |
| warn: "rgb(225, 180, 110)" |
| /** | |
| * Supports IE9+, FF, Webkit | |
| * @param callback | |
| */ | |
| function watchElementState(callback) { | |
| var MutationObserver = | |
| window.MutationObserver || window.WebKitMutationObserver, | |
| eventListenerSupported = window.addEventListener; | |
| // callback.bind(this); |
| #!/bin/bash | |
| # shellcheck disable=1090,1091,2059 | |
| # set ENV default value to 'dev'' | |
| ENV="${1:-dev}" | |
| # import (source) utility variables and functions | |
| . "$DIR/bootstrap/utils" | |
| # Terminal output to illustrate progress |