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
this is a test |
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
config { | |
type: "view" | |
} | |
select distinct | |
timestamp, | |
user_id, | |
name as event_name, | |
is as event_id | |
from |
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 requests | |
from google.cloud import bigquery | |
# Intercom API access header | |
headers = { | |
'Authorization': 'Bearer access-token', | |
'Accept': 'application/json', | |
'Content-Type': 'application/json', | |
} |
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
app.controller('MainController', ['$scope', 'places', function($scope, places) { | |
$scope.mapCenter = { lat: 40.741934, lng: -74.004897, zoom: 17 }; | |
places.success(function(data) { | |
$scope.geodata = data; | |
}); | |
$scope.mapMarkers = geodataToMarkers($scope.geodata); | |
}]); |
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
app.factory('places', ['$http', function($http) { | |
return $http.jsonp('https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=5000&gscoord=40.741934%7C-74.004897&gslimit=30&format=json&callback=JSON_CALLBACK') | |
.success(function(data) { | |
return data; | |
}) | |
.error(function(data) { | |
return data; | |
}); | |
}]); |