This file contains hidden or 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
// 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, |
This file contains hidden or 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
<!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"> |
This file contains hidden or 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
<html> | |
<body> | |
<a href="https://open.spotify.com/special/quicksilver">QS - OPEN</a> | |
<a href="http://open.jperez.cloud.spotify.net/qs">QS - REDIRECT</a> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Coldplay on Spotify</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=9"> | |
This file contains hidden or 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
<html> | |
<body> | |
Here is my SPB | |
<iframe src="https://open.jperez.cloud.spotify.net/embed/track/0TTGOEUDTC9oNsVZrpOk7s"></iframe> | |
</body> | |
</html> |
This file contains hidden or 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
{ | |
"name": "superagent", | |
... | |
"browser": { | |
"./lib/node/index.js": "./lib/client.js", | |
... | |
}, | |
... | |
"main": "./lib/node/index.js", | |
... |
This file contains hidden or 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
{ | |
"name": "iso-http", | |
... | |
"main": "js/node/Http.js", | |
"browser": "js/browser/Http.js", | |
... | |
} |
This file contains hidden or 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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<style> | |
a { | |
display: block; | |
padding: 1em; | |
} | |
</style> | |
</head> |
This file contains hidden or 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
// we ask for permission to record the window | |
// mediaSource could also be 'screen' if we wanted | |
// to record the entire screen | |
const getStreamForWindow = () => navigator.mediaDevices.getUserMedia({ | |
video: { | |
mediaSource: 'window' | |
} | |
}); | |
// we ask for permission to record the audio and video from the camera | |
const getStreamForCamera = () => navigator.mediaDevices.getUserMedia({ |