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
const { error } = require('./utils'); | |
const baseDir = __dirname; | |
const getReportFolder = hash => `${baseDir}reports/automated-lighthouse-${hash}`.replace('\n', ''); | |
const getReportPath = (dirName, format, fileName = 'report') => `${dirName}/${fileName}.${format}`; | |
/** | |
* Function that will generate the report based on the results for the lighthouse run |
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
// `Object.make(..)` is a helper/wrapper for `Object.create(..)`. Both create a new | |
// object, and optionally link that new object's `[[Prototype]]` chain to another object. | |
// | |
// But `Object.make(..)` makes sure the new object always has a `__proto__` property | |
// (even a null one) and delegation to a `isPrototypeOf(..)` method, both of which are | |
// missing from the bare object (aka "Dictionary") created by `Object.create(null)`. | |
// | |
// `isPrototypeOf()` is put on a extra object that your created object can delegate to, | |
// if any only if you create an empty object (by not passing a `linkTo`) that otherwise | |
// wouldn't have access to `isPrototypeOf()`. |
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
App.ApplicationAdapter.reopen | |
pathForType: (type)-> | |
decamelized = Ember.String.decamelize(type) | |
"#{Ember.String.pluralize(decamelized)}.json" |
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
// http://emberjs.com/api/classes/Ember._MetamorphView.html#event_didInsertElement workaround for the | |
/* | |
didInsertElement: function(){ | |
console.log('only called on the first load of the view'); | |
} | |
*/ | |
// either Ember.View.reopen (beware, will execute on EVERY view) or App.MyView = Ember.View.create | |
init:function(){ |
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
# add "deb http://ftp.us.debian.org/debian wheezy-backports main" to /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install nodejs-legacy | |
curl --insecure https://www.npmjs.org/install.sh | sudo bash |
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
Tecnologias | |
http://coffeescript.org/ | |
http://sass-lang.com/ | http://lesscss.org/ | |
http://compass-style.org/ | http://sass.fffunction.co/ | |
http://bower.io/ | |
http://gruntjs.com/ | |
http://yeoman.io/ | |
http://capistranorb.com/ | |
http://gitscm.org/ | |
http://twitter.github.io/bootstrap/ | http://foundation.zurb.com/ |
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
/* ----------------------------------------------------------------------- */ | |
/* */ | |
/* Improved upon a mixin from 37signals and combined */ | |
/* with these numbers from marc. */ | |
/* */ | |
/* 37signals-version: */ | |
/* http://37signals.com/svn/posts/3271-easy-retina-ready-images-using-scss */ | |
/* */ | |
/* @kimroen */ | |
/* */ |
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() { | |
var script, | |
scripts = document.getElementsByTagName('script')[0]; | |
function load(url) { | |
script = document.createElement('script'); | |
script.async = true; | |
script.src = url; | |
scripts.parentNode.insertBefore(script, scripts); |
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
Fontes de conhecimento :) | |
http://stevesouders.com/ | |
http://browserdiet.com/ | |
http://css-tricks.com/thinking-async/ | |
http://www.slideshare.net/stoyan/dont-make-me-wait-or-building-highperformance-web-applications | |
https://developers.google.com/speed/standards/ | |
https://developers.google.com/speed/docs/best-practices/rules_intro | |
https://developers.google.com/speed/docs/best-practices/request | |
https://developers.google.com/speed/docs/best-practices/rendering | |
https://speakerdeck.com/chriscoyier/lets-do-a-bunch-of-simple-stuff-to-make-websites-faster |