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
| if [ "$1" == '' ]; then | |
| echo "Please enter option"; | |
| exit 1: | |
| fi | |
| echo 'option chosen: ' $1; | |
| baseURL='http://jsonplaceholder.typicode.com/' | |
| resource='posts' | |
| URL=$baseURL$resource |
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
| $ rails new court-reservation --api -T --no-sprockets -d postgresql | |
| --api -> No views and other config related with the default way of creating apps. | |
| -T -> No test. This is useful for using Rspec. | |
| --no-sprockets -> Something related with the asset pipeline of Rails. | |
| -d postgresql -> Use postgresql database |
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
| https://react-redux.js.org/api/connect | |
| https://blog.logrocket.com/react-redux-connect-when-and-how-to-use-it-f2a1edab2013/ | |
| https://reactgo.com/react-redux-connect/ | |
| https://dev.to/bhatvikrant/how-to-setup-redux-with-react-2020-cdj | |
| https://medium.com/swlh/accessing-redux-from-components-in-react-react-native-d9f0e4cdb2dc | |
| https://chriscourses.com/blog/redux | |
| https://medium.com/swlh/accessing-redux-from-components-in-react-react-native-d9f0e4cdb2dc |
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
| def sum x , y | |
| x + y | |
| end | |
| describe "sum" do | |
| it "5 + 9 = 14" do | |
| expect( | |
| sum(5,9) | |
| ).to be(14) |
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
| require('./calculator.rb') | |
| context "Calculator" do | |
| let(:calc){Calculator.new()} | |
| describe "Addition" do | |
| it "5 + 4 = 9" do | |
| expect( |
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
| class Calculator | |
| def addition a,b | |
| a + b | |
| end | |
| def substraction a,b | |
| a - b | |
| end | |