I hereby claim:
- I am keego on github.
- I am keegansfarley (https://keybase.io/keegansfarley) on keybase.
- I have a public key ASDQziCC6T-JDz_34I-hWKyew_vIb95ZnFi6KLgye7CQqQo
To claim this, I am signing this object:
| // ------------------------------------------------------------------------------------ | |
| // These are some handy Named Functions I came up with to help with my | |
| // Google Sheet I use for tracking roommate expenses. | |
| // | |
| // This gist uses JSDoc syntax but translates pretty easily into the form fields | |
| // in Google Sheets Named Function wizard. | |
| // ------------------------------------------------------------------------------------ | |
| /** | |
| * @function |
| const syntaxChars = /[\^$\\.*+?()[\]{}|]/g | |
| /** | |
| * Escapes all special special regex characters in a given string | |
| * so that it can be passed to `new RegExp(escaped, ...)` to match all given | |
| * characters literally. | |
| * | |
| * inspired by https://github.com/es-shims/regexp.escape/blob/master/implementation.js | |
| * | |
| * @param {string} s |
| /** | |
| * This code is meant to be executed in a browser console in order | |
| * to make it visually apparent what section of the page has focus. | |
| * As focus moves around, different elements will exhibit a flashing border. | |
| * Usage: | |
| * 1. Drop definitions in in browser console | |
| * 2. Call `addAnimation()` to add the animation css to the current document | |
| * 3. Call `start()` to start tracking focus | |
| * 4. Call `stop()` to stop tracking focus | |
| */ |
I hereby claim:
To claim this, I am signing this object:
| // Private fields | |
| var PAGE_HEIGHT = 700; | |
| var PAGE_WIDTH = 500; | |
| // Private methods | |
| function createNewReport (fileName) { | |
| var content = []; |
| /** | |
| * Converts a label or variable name into kebab-case | |
| * | |
| * i.e | |
| * ``` | |
| * "Sentence case rekt" -> "sentence-case-rekt" | |
| * "Title Case Rekt" -> "title-case-rekt" | |
| * "camelCaseRekt" -> "camel-case-rekt" | |
| * "PascalCaseRekt" -> "pascal-case-rekt" | |
| * "snake_case_rekt" -> "snake-case-rekt" |