hello
I hereby claim:
- I am dlbnco on github.
- I am dlbnco (https://keybase.io/dlbnco) on keybase.
- I have a public key ASBBnY6RiWLqsYIxvI0GufSzXvWKRDvQSOqPoq1Nln45qAo
To claim this, I am signing this object:
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 fetch = require('node-fetch') | |
const GOOGLE_PLACES_API_KEY = 'your-key'; | |
module.exports = function (event) { | |
const { id } = event.data | |
return fetch(fetchGooglePlace(id)) | |
.then(res => res.json()) | |
.then(payload => { | |
console.log(payload) |
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
type GooglePlace { | |
payload: Json! | |
} | |
extend type Query { | |
googlePlace(id: String!): GooglePlace | |
} |
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 axios from 'axios'; | |
import { print } from 'graphql'; | |
import gql from 'graphql-tag'; | |
import apiUrl from '../config'; | |
const GET_CANDY = gql` | |
query candy ( | |
$name: String | |
) { | |
candy ( |
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 gql from 'graphql-tag'; | |
const GET_CANDY = gql` | |
query candy ( | |
$name: String | |
) { | |
candy ( | |
name: $name | |
) { | |
id |
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 axios from 'axios' | |
import apiUrl from '../config' | |
axios({ | |
method: 'post', | |
url: apiUrl, | |
headers: { | |
Authorization: localStorage.getItem('token'), | |
}, | |
data: { |
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 axios from 'axios' | |
import apiUrl from '../config' | |
axios({ | |
method: 'post', | |
url: apiUrl, | |
headers: { | |
Authorization: localStorage.getItem('token'), | |
}, | |
data: { |
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
$colors: ( | |
red: #ed3237, | |
blue: #3e4095, | |
white: #fff, | |
); | |
@each $value in $colors { | |
.text-#{nth($value, 1)} { | |
color: nth($value, 2); | |
} |