This file contains 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
// javascriptreact.json | |
// <==== REMEMBER TO ADD THE CONTENT ABOVE IN THE SPECIFIC FILE ON VSCODE ====> | |
{ | |
/* | |
// Place your snippets for JavaScript React here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: |
This file contains 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
{ | |
/* | |
// Place your snippets for JavaScript React here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ |
This file contains 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
/* core */ | |
import { FluidNavigator } from 'react-navigation-fluid-transitions'; | |
/* Screens */ | |
import SomePage from 'pages/somepage'; | |
import AnotherPage from 'pages/somepage'; | |
const Routes = FluidNavigator({ | |
somepage: { screen: SomePage }, | |
anotherpage: { screen: AnotherPage }, |
This file contains 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 { | |
createReactNavigationReduxMiddleware, | |
createNavigationReducer, | |
} from 'react-navigation-redux-helpers'; | |
export default (AppNavigator) => { | |
const navReducer = createNavigationReducer(AppNavigator); | |
const middleware = createReactNavigationReduxMiddleware( | |
'root', | |
state => state.nav, |
This file contains 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
/* Redux */ | |
import { connect } from 'react-redux'; | |
import { reduxifyNavigator } from 'react-navigation-redux-helpers'; | |
import reducer from './reducer'; | |
/* Routes */ | |
import AppNavigator from './routes'; | |
const { navReducer, middleware } = reducer(AppNavigator); |
This file contains 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 rootReducer = combineReducers({ | |
nav: navReducer, | |
}); | |
... | |
const store = configureStore(rootReducer, rootSaga, middleware); | |
... |
This file contains 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
/* Reducers */ | |
import { navReducer, middleware } from 'navigation'; | |
const rootReducer = combineReducers({ | |
nav: navReducer, | |
}); | |
// Calling a separated store manager | |
const store = configureStore(rootReducer, rootSaga, middleware); |
This file contains 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
/* Presentational */ | |
import { Navigator } from 'navigation'; | |
const App = () => ( | |
<Provider store={store}> | |
<PersistGate persistor={persistor}> | |
<Navigator /> | |
</PersistGate> | |
</Provider> | |
); |
This file contains 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
protocol ItemStoring { | |
associatedtype DataType | |
var items: [DataType] { get set } | |
mutating func add(item: DataType) | |
} | |
extension ItemStoring { | |
mutating func add(item: DataType) { | |
items.append(item) |
This file contains 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
curl https://api.github.com/authorizations --user lucasfernandes --header "X-GitHub-OTP: 921217" |
OlderNewer