Skip to content

Instantly share code, notes, and snippets.

View JMPerez's full-sized avatar

José M. Pérez JMPerez

View GitHub Profile
<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;
@JMPerez
JMPerez / web-api-create-playlist.js
Created February 27, 2015 10:08
Web API Support
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);
@JMPerez
JMPerez / affirmation
Created June 12, 2015 09:19
MuleSoft Contributor Agreement Acceptance by José Manuel Pérez Pérez
I, José Manuel Pérez Pérez, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Fri Jun 12 2015 11:20:11 GMT+0200 (CEST)
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9" lang="en"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Musik f&ouml;r arbetsdagen on Spotify</title>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9" lang="en"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Majareta, a song by La Fuga on Spotify</title>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<html>
<head>
<style type="text/css">
html {
font-size: 2em;
font-family: Helvetica;
}
a {
@JMPerez
JMPerez / iframe.html
Last active September 16, 2015 09:52
iframe.html
<html>
<body>
Testing iframes
<iframe src="https://awseu3-embed-a1.shared.cloud.spotify.net/?uri=spotify:user:spotify:playlist:1hMSSYF5VhLi8GKr3fxWsf" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
</body>
</html>
<html>
<body>
<a href="https://play.spotify.com/track/0PxwxlDRD3hGU38dfhCmYU?ref=open">CLICK ME (https://play.spotify.com/track/0PxwxlDRD3hGU38dfhCmYU?ref=open)</a>
<br/>
<a href="https://app.adjust.com/bk24fu?deep_link=spotify:user:spotify:playlist:5bMgwxIN2fNPSn3jjvRfE8">https://app.adjust.com/bk24fu?deep_link=spotify:user:spotify:playlist:5bMgwxIN2fNPSn3jjvRfE8</a>
</body>
</html>
@JMPerez
JMPerez / yami-scripts.js
Created October 19, 2015 19:19
Fix for Yami's project
// in portfolio/public/scripts.js
// [...]
/**
* Returns an object with the query parameters passed in the
* hash of the URL
*/
function getHashParams() {
var hashParams = {};
var e, r = /([^&;=]+)=?([^&;]*)/g,
@JMPerez
JMPerez / test5.html
Created November 7, 2015 10:27
Test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="author" content="Carlos Coloma">