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
Simple Form | |
Inactive* | |
focus field -> Field Active | |
Field Active | |
enter text -> Fields Filled | |
Fields Filled | |
submit -> Valid? | |
Valid? | |
yes -> Submit? | |
no -> Field Error |
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
Single Auth Source | |
Credentials Form* | |
# This is an Input Field, described in submachine below | |
Email Field Active* | |
enter text -> Password Field Active | |
# This is an Input Field, described in submachine below | |
Password Field Active | |
enter text -> Credentials Filled | |
Credentials Filled | |
submit -> Valid? |
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
Single Auth Source | |
Credentials Form* | |
# This is an Input Field, described in submachine below | |
Email Field Active | |
enter email -> Password Field Active | |
# This is an Input Field, described in submachine below | |
Password Field Active | |
enter password -> Credentials Filled | |
Credentials Filled | |
submit -> Valid? |
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
Login Form | |
Inactive * | |
focus email -> Email | |
focus password -> Password | |
Active | |
focus password -> Password | |
Email Empty* |
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 random | |
def roll(sides=6): | |
return random.randint(1, sides) | |
def main(): | |
sides = 6 | |
rolling = True | |
while rolling: | |
roll_again = input('Roll the dice? Yes = Enter, No = Q') |
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 addTax = (price, tax) => price + (price * tax); | |
const addOntarioTax = (price) => addTax(price, 0.13); | |
const addLicensingCost = (price) => (price + 20 + 40 + 108); | |
const addBuffer = (price, buffer = 0) => (price + (price * buffer)); | |
const calculateTotalCost = (price, buffer) => Math.round(addBuffer(addLicensingCost(addOntarioTax(price)), buffer)); | |
module.exports = { | |
calculateTotalCost, | |
}; |
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
# ======= | |
# Aliases | |
# ======= | |
alias ios='open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app' | |
alias refresh='source ~/.bash_profile' | |
alias refreshhosts='dscacheutil -flushcache' | |
alias ipaddr="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'" | |
alias copypath="pwd | pbcopy" | |
# ========================================= |