A lot of the time we overlook code style rules like PEP8 and JSHint if it's not integrated into our daily workflow. For me, it's integrated in my Emacs editor but, if you're using Fabric for deployments and a lot of the tasks associated with your code, why not integrate code style checks into this process?
Here's a small gist that you can integrate into your fabfile.
The objective of this project is to create a random gallery of images using Flickr API, in the first view we will select a category (tag) and in the next one we will start to see random images about that topic.
For this sample application I’m using Ubuntu 13.10 as my development environment. For starters we want to install node.js from Chris Lea’s PPA and then a few npm requirements:
apt-get update; sudo apt-get install nodejs
npm install -g phonegap
npm install -g bower
To create a new application we need ...
On our app we have a Blog Index page where all the post are loaded using infnite scrolling, in every post's display there are social networks buttons (Twitter, Facebook and G+) that show how many likes, tweets or +1's has. Everytime someone got down far enough to new posts to be loaded, these buttons wouldn't appear.
After fixing some other bugs with that code, I found that this buttons are displayed via a "search and replace" code, that is executed once everytime the page loads, that's why when loaded via ajax they wouldn't show.
Searching I found an answer to ...