This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const getUSRegions = () => ({ | |
| ne: { name: "Northeast" }, | |
| mw: { name: "Midwest" }, | |
| s: { name: "South" }, | |
| w: { name: "West" }, | |
| ter: { name: "US Territories" }, | |
| }); | |
| const getUSDivisions = () => ({ | |
| ne: { name: "New England", region: "ne" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useCallback, useEffect, useRef } from 'react'; | |
| type UseTimeoutCallback = (...args: Array<any>) => void; | |
| /** | |
| * Set a timer, which executes a function once the timer expires. Exposes pause, resume and cancel | |
| * callbacks to the consumers. | |
| * | |
| * @param {UseTimeoutCallback} fn Callback function to execute after the specified timeout | |
| * @param {number} ms Timeout in milliseconds after which to execute the callback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* tslint:disable:max-classes-per-file */ | |
| declare module '@okta/okta-auth-js' { | |
| // Custom HTTP request handler implementation. | |
| export type OktaHttpRequestClient = ( | |
| method: string, | |
| url: string, | |
| args: Array<any>, | |
| ) => Promise<string>; | |
| // Authorization response mode. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #set ($ARGUMENTS = []) | |
| #set ($ARGUMENTS_STR = "") | |
| #set ($PARAM_DOC_DESC = "") | |
| #set ($NEWLINE = " | |
| ") | |
| ## only process arguments if any are selected | |
| #if ($PARAM_DOC != "") | |
| ## split PhpDoc lines generated by PhpStorm into multiple lines | |
| #set ($DOC_LINES = $PARAM_DOC.split("\n")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sleep = ms => | |
| new Promise(resolve => | |
| setTimeout(resolve, ms)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # More information @ http://schacon.github.io/git/git-filter-branch.html | |
| # | |
| # Rewrite using environment filter | |
| git filter-branch --env-filter \ | |
| 'if [ $GIT_COMMITTER_EMAIL = [email protected] ]; | |
| then | |
| GIT_COMMITTER_NAME="New Name"; | |
| [email protected]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| ini_set('display_errors', 1); | |
| error_reporting(E_ALL); | |
| $host = '127.0.0.1'; | |
| $user = 'root'; | |
| $pass = ''; | |
| $db = 'test'; |