I hereby claim:
- I am MethodGrab on github.
- I am methodgrab (https://keybase.io/methodgrab) on keybase.
- I have a public key whose fingerprint is 3EC4 8DED D59C 1639 C155 9B7E 16A6 BAB1 4BA2 0968
To claim this, I am signing this object:
| ### | |
| Silence STDOUT & STDERR streams during tests | |
| Useful for Yeoman to provide a cleaner output | |
| @uses github.com/balderdashy/fixture-stdout | |
| Yeoman Usage: | |
| If your generator logs anything on the 'end' event | |
| you can add an additional event as the very last | |
| thing and trigger Output.unmute() on that event instead. | |
| ``` |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Merge two dimensional arrays my way | |
| * | |
| * Will merge keys even if they are of type int | |
| * | |
| * @param array $array1 Initial array to merge. | |
| * @param array ... Variable list of arrays to recursively merge. | |
| * |
| // | |
| // SVG — hasClass, addClass, removeClass, toggleClass | |
| // Source: | |
| // https://gist.github.com/branneman/8436956 | |
| // Taken and adapted from: | |
| // http://toddmotto.com/hacking-svg-traversing-with-ease-addclass-removeclass-toggleclass-functions/ | |
| // | |
| if (SVGElement && SVGElement.prototype) { |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.