Skip to content

Instantly share code, notes, and snippets.

View inorganik's full-sized avatar
🛠️
building

Jamie Perkins inorganik

🛠️
building
View GitHub Profile
@inorganik
inorganik / firstpaint.js
Last active May 23, 2017 23:19 — forked from ebidel/firstpaint.js
Helper to print first paint time in Chrome
if (window.chrome && window.chrome.loadTimes) {
let load = chrome.loadTimes();
const getFP = function() {
let fp = (load.firstPaintTime - load.startLoadTime) * 1000;
return Math.round(fp);
};
let fp = getFP();
console.log(`first paint: ${fp} ms`);
@inorganik
inorganik / extract-testflight.js
Last active April 6, 2016 12:50 — forked from creaoy/extract-testflight.js
Extract TestFlight user email addresses from iTunes Connect
// Make sure you scroll down to get all data loaded
var text = 'First, Last, Email\n';
angular.forEach($scope.filteredTesters, function(val) {
text += val.firstName.value + ',';
text += val.lastName.value + ',';
text += val.emailAddress.value + '\n';
});
var a = document.createElement("a");
var file = new Blob([text], {type: 'text/csv'});
a.href = URL.createObjectURL(file);