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
| #------------------ | |
| # Shell Variables | |
| #------------------ | |
| # Specify VS Code as default editor for the React Native Simulator | |
| export REACT_EDITOR=code-insiders | |
| # Set VS Code Insiders as default code editor | |
| export EDITOR=code-insiders | |
| # Android SDK | |
| export ANDROID_HOME=~/Library/Android/sdk |
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
| # Use hyper.is or iTerm2 as terminal emulators | |
| # Install ohmyzsh | |
| # https://github.com/robbyrussell/oh-my-zsh | |
| # Copy over configs from ~/.bash_profile | |
| # For example, it may have the nvm setup or any aliases like exa=ls and cat=bat | |
| # ~/.hyper.js configuration: | |
| copyOnSelect: true |
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
| // this code assumes a credit card is valid in the current month | |
| var validateDate = function () { | |
| var creditCardDate = moment($scope.data.expirationYear+$scope.data.expirationMonth, "YYMM"); | |
| var today = moment(); | |
| return creditCardDate.isValid() && (today < creditCardDate.add(1, 'months')); | |
| } |
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
| <?php | |
| // Test cards | |
| $cards = array( | |
| '378282246310005', // American Express | |
| '371449635398431', // American Express | |
| '5078601870000127985', // Aura | |
| '5078601800003247449', // Aura | |
| '30569309025904', // Diners Club | |
| '38520000023237', // Diners Club |