Mostrando entradas de enero, 2015

A great book to know the power of AngularJS in action

I just finished to read 'AngularJS Web Application Development Blueprints' and here are some of the best and helpful things I found about it:

When I started to read it I thought it was just about AngularJS api but after the first chapter I noticed that the book has more that simple AngularJS examples.

One of the things I love is the Tips when the author explain why is better to use one or other tag, branch or code, that is the best way to learn why one or other code do the same but one is better that others.

This book comes with a real important chapter about tools to take the best advantage of all the AngularJS framework through many packages as grunt, yeoman and karma.

And real examples, from a simple web app to a more complex CMS, but one of the best is how to setup a Scalable Architecture for real.

I hope you read it!
If you have any commets about this, please let me know!

Git: how to use .gitignore

If you start your repo and dont create your .gitignore file before adding files maybe when you create it will not work as you think, to make it work do this after create your .gitignore file:

    git rm -r --cached .
    git add .

At this point your ignored files must be updated and when you commit that will be deleted from your repo, so commit it:

   git commit -m 'gitignore is working now, and remove ignored files'

that is it!

Git: revert pushed commit

So many times I must to search this so here is how:

    git reset --hard <commit_hash>
    git push -f origin <branch> #in most of cases is the branch is master

and that is it, if you have other clone of the repository you must checkout first at the last 'correct' commit
   git checkout <commit_hash>
   git pull origin <branch>

thats it!