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 importsToLinks() { | |
var i; | |
var n; | |
var imports; | |
var newLinkElement; | |
var $inlineStyleElements = document.querySelectorAll('style'); | |
for (i = 0; i < $inlineStyleElements.length; i ++) { | |
imports = $inlineStyleElements[i].innerText.match(/(@import) (url)\(([^>]*?)\)/g); |
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(){ | |
function killIt(id) { | |
console.log(id); | |
$.post('/api/files.delete', { | |
file: id, | |
token: boot_data.api_token | |
}, function(data) { | |
console.log(data); | |
}); |
- Building our own client.
strava-v3
is quite good, but I'm not a fan of the interface - Making value objects for units of distance and time. How do we hold data centrally to allow users freedom to switch between metric and imperial
- Isomorphic JS, what can we ship on the front and back?
- Data crunching. How are we setting up mutliple API requests and queueing them without borking our server or maxing out rate limits?
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
$('a[href^="mailto:"]').click(function(e) { | |
var uri = $(this).attr('href'); | |
var emailRegEx = new RegExp(/\mailto:(.*?)\?/); | |
var params = uri.replace(emailRegEx, '').split('&'); | |
var email = uri.match(emailRegEx); | |
var fields = { | |
email: email ? email[1] : null, | |
subject: null, | |
body: null |