let sum = 0
const numbers = [1,2,3,4,5,6,7,8,9,10]
for(let i = 0, len = numbers.length; i < len; i+=1) {
sum += numbers[i]
}
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 React from 'react' | |
| import { Provider } from 'react-redux' | |
| import { createStore } from 'redux' | |
| import CounterContainer from './Counter.container' | |
| const store = createStore() | |
| const App = () => ( | |
| <Provider store={store}> | |
| <CounterContainer /> |
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 { connect } from 'react-redux' | |
| import Counter from './Counter' | |
| function mapStateToProps(state) { | |
| return { count: state.count } | |
| } | |
| export default connect(mapStateToProps)(Counter) |
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 React, { Component } from 'react' | |
| export default class Counter extends Component { | |
| increment = () => { | |
| // preencher depois | |
| } | |
| decrement = () => { | |
| // preencher depois | |
| } |
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 React from 'react'; | |
| import { render } from 'react-dom'; | |
| import App from './App'; | |
| import registerServiceWorker from './registerServiceWorker'; | |
| render(<App />, document.getElementById('root')); | |
| registerServiceWorker(); |
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 React from 'react' | |
| import Counter from './Counter' | |
| const App = () => <Counter /> | |
| export default App |
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 React, { Component } from 'react' | |
| export default class Counter extends Component { | |
| state = { | |
| count: 0 | |
| } | |
| increment = () => { | |
| this.setState({ | |
| count: this.state.count + 1 |
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
| Profissional - A | |
| 35 | |
| _____________ | |
| | | | |
| 5 | 175m2 | 5 | |
| |_____________| | |
| 35 | |
| Profissional - B |
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
| /*=============Module================*/ | |
| import service from './upload.service'; | |
| import directive from './upload.directive'; | |
| export default angular.module('app.upload', ['app.feedback']) | |
| .service('uploadService', service) | |
| .directive('upload', directive) | |
| .name; | |
| /*=============Service===============*/ |
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
| Reference Install: http://www.tecmint.com/screen-command-examples-to-manage-linux-terminals/ | |
| Reference: http://unix.stackexchange.com/questions/26685/how-to-split-window-vertically-in-gnu-screen | |
| Check out the video tutorial on Split Screen with Screen in Linux - BASH - https://www.youtube.com/watch?v=dFdqyccdWUE . At time 2:00 minute, there would be a solution. | |
| `Ctrl`+`A`+`S` # Create another window | |
| `Ctrl`+`A`+`Tab` # Moving from another window |