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
| <tcomb.Form type={bankLocation.getType()} options={bankLocation.getOptions()} /> |
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 international = StructBuilder | |
| .setField('country', CountriesBuilder.setLabel('Country')); | |
| const stateCity = StructBuilder | |
| .setField('city', TextBuilder | |
| .setLabel('City')) | |
| .setField('state', UnitedStatesBuilder | |
| .setLabel('State')); | |
| const us = international |
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 bankLocation = FormPageBuilder | |
| .setLabel('Investor\'s Bank Location') | |
| .setField('form', UnionBuilder | |
| .setUnion([us, international]) | |
| .setDispatch(({ country = 'US' }) => ( | |
| country === 'US' | |
| ? us | |
| : international | |
| ))); |
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 stateCity = StructBuilder | |
| .setField('city', TextBuilder | |
| .setLabel('City')) | |
| .setField('state', UnitedStatesBuilder | |
| .setLabel('State')); | |
| const us = international | |
| .setField('stateCity', stateCity); |
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 international = StructBuilder | |
| .setField('country', CountriesBuilder.setLabel('Country')); |
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
| render() { | |
| const { isUSA } = this.props; | |
| const cityState = ( | |
| <div> | |
| <City /> | |
| <State /> | |
| </div> | |
| ); |
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 UIKit | |
| /* Enumerations */ | |
| // MOTIVATING EXAMPLE | |
| // I have 3 different kinds of users: administrator, employee, user. | |
| // Each type of user has a different priviledge level: | |
| // Admins: See tasks for all users in application and all below. |
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
| http://repl.it/languages/python | |
| #### First Draft #### | |
| deck1 = [1, 2, 3, 7, 8] | |
| deck2 = [4, 5, 6, 9, 10] | |
| # First write this in while loop and then move out when | |
| # introducing methods | |
| def announce_round(c1, c2): | |
| print "Player 1\tPlayer 2" |
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
| ## Task List | |
| # At beginning: | |
| # - go over types (string, int) | |
| # - "and" and "or" | |
| def start_task_list(): | |
| # creating an instance of a class | |
| task_list = TaskList() |
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
| ## Task List | |
| # At beginning: | |
| # - go over types (string, int) | |
| # - "and" and "or" | |
| def start_task_list(): | |
| # creating an instance of a class | |
| task_list = TaskList() |
NewerOlder