$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
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
query($id: ID!) { | |
film(id: $id) { | |
title | |
openingCrawl | |
director | |
producers | |
releaseDate | |
} | |
} |
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
// With comma | |
film(id: $id) { title,episodeID, openingCrawl, director } | |
// With new line | |
film(id: $id) { | |
title | |
openingCrawl | |
director | |
producers | |
releaseDate |
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
film(id: $id) { | |
title | |
openingCrawl | |
director | |
producers | |
releaseDate | |
} |
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
// main.js | |
import Expo from 'expo'; | |
import React from 'react'; | |
import { StackNavigator } from 'react-navigation'; | |
import App from './src/App'; | |
import Film from './src/Film'; | |
import FilmDetail from './src/Film/FilmDetail'; | |
const routes = { | |
Home: { |
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
// main.js | |
class AppContainer extends React.Component { | |
render() { | |
return ( | |
<ApolloProvider client={client}> | |
<MainApp /> | |
</ApolloProvider> | |
); | |
} | |
} |
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 { | |
ApolloClient, | |
ApolloProvider, | |
createNetworkInterface, | |
} from ‘react-apollo’; | |
const client = new ApolloClient({ | |
networkInterface: createNetworkInterface({ | |
uri: ‘GRAPHQL_SERVER_ENDPOINT’, | |
}), |
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
// main.js | |
import { StackNavigator } from 'react-navigation'; | |
import App from './src/App'; | |
import Film from './src/Film'; | |
import FilmDetail from './src/Film/FilmDetail'; | |
const routes = { | |
Home: { | |
name: 'Home', | |
screen: App, |