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
| What’s stopping your web pages from getting silky smooth scrolling, buttery animation and a user experience that’s snappy and fast? Jank-free rendering performance has been shown to positively affect user engagement and experience in many large sites, but remains an area many are unaware of how to diagnose or optimize. | |
| To highlight how widespread rendering is a performance bottleneck, I’ve been giving a few talks walking through a detailed case study of the Pinterest.com feed. A recording of the most recent one is now up where you might learn about common paint issues in modern sites and equally as importantly — how to diagnose them. | |
| By the end of the recording you’ll be equipped with the knowledge to use a number of performance diagnosis features in Chrome DevTools to find and fix rendering issues in your own sites. |
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
| g push origin --delete [branch_name] |
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
| env RUBYLIB=/Applications/RubyMine.app/rb/testing/patch/common:/Applications/RubyMine.app/rb/testing/patch/bdd zeus start |
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
| gem install zeus |
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
| describe('User', function(){ | |
| describe('#save()', function(){ | |
| it('should save without error', function(done){ | |
| var user = new User('Luna'); | |
| user.save(function(err){ | |
| if (err) throw err; | |
| done(); | |
| }); | |
| }) | |
| }) |
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
| grunt | |
| Running "jshint:gruntfile" (jshint) task | |
| >> 1 file lint free. | |
| Running "jshint:src" (jshint) task | |
| >> 1 file lint free. | |
| Running "jshint:test" (jshint) task | |
| >> 1 file lint free. | |
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
| def self.all_cached | |
| Rails.cache.fetch('Contact.all') { all } | |
| end |
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
| agent = WWW::Mechanize.new | |
| agent.get("http://www.awesomeblog.com/amazing-article") | |
| scraper.text = MyScraper.new(:text => Pismo::Document.new(agent.url)) | |
| while agent.page.link_with("rel='next'").click do | |
| pismo_doc = Pismo::Document.new(agent.url) | |
| scraper.text << pismo_doc.lede | |
| end |
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
| <input type="text" onpaste="return false;" /> |
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
| var oldDate = Date; | |
| Date = function (fake) | |
| { | |
| return new oldDate('03/08/1980'); | |
| } | |
| var x = new Date(); | |
| window.alert(x); |