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
var refreshToken = 'xxxxxxxxxx'; // obtained using Authorization Code flow | |
var spotifyApi = new SpotifyWebApi({ | |
scope : ['user-read-private', 'user-read-email', 'playlist-modify-public'], | |
clientId : 'xxxxxxxxxx', | |
clientSecret : 'xxxxxxxxxxxxxxx' | |
}); | |
// we set the refresh token that will be used to obtain a fresh access token | |
spotifyApi.setRefreshToken(refreshToken); |
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
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../google-map/google-map-search.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
(function() { | |
'use strict'; | |
var map, //the google map | |
directionsService, //service that provides directions to reach our destination | |
directionsDisplay, //renderer that draws directions on map | |
destinationName = 'Ventorro del Cano, Madrid'; //our destination. Set yours! | |
// providers | |
var html5Provider = function() { | |
return { |
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
#!/bin/sh | |
files=$(git diff-index --name-only HEAD | grep -l '\.js$') | |
for file in $files; do | |
esvalidate $file | |
if [ $? -eq 1 ]; then | |
echo "Syntax error: $file" | |
exit 1 | |
fi | |
done |
NewerOlder