Skip to content

Instantly share code, notes, and snippets.

View dlbnco's full-sized avatar
:shipit:
🦡

Mateus Dal Bianco dlbnco

:shipit:
🦡
View GitHub Profile

hello

Keybase proof

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:

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)
type GooglePlace {
payload: Json!
}
extend type Query {
googlePlace(id: String!): GooglePlace
}
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 (
import gql from 'graphql-tag';
const GET_CANDY = gql`
query candy (
$name: String
) {
candy (
name: $name
) {
id
import axios from 'axios'
import apiUrl from '../config'
axios({
method: 'post',
url: apiUrl,
headers: {
Authorization: localStorage.getItem('token'),
},
data: {
import axios from 'axios'
import apiUrl from '../config'
axios({
method: 'post',
url: apiUrl,
headers: {
Authorization: localStorage.getItem('token'),
},
data: {
@dlbnco
dlbnco / colors.scss
Created January 6, 2018 13:44
Create text and background color classes with SASS variables
$colors: (
red: #ed3237,
blue: #3e4095,
white: #fff,
);
@each $value in $colors {
.text-#{nth($value, 1)} {
color: nth($value, 2);
}