This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| # The official wiki page for Building and Installing Node.js | |
| # https://github.com/joyent/node/wiki/Installation | |
| # Update the system | |
| echo 'Update the system' | |
| sudo apt-get -y udpate | |
| echo 'System updated' | |
| # Install the dependencies packages | |
| echo 'Install the dependencies packages' |
| $ git tag -a v1.0.0 -m "Creating the first official version." | |
| $ git show v1.0.0 | |
| $ git describe --tags | |
| # Made changes | |
| $ touch test | |
| # Added changes |
| <form name="${name}" id="${id}" method="post" action="${action}" > | |
| ${cursor} | |
| </form> |
| <form name="${name}" id="${id}" method="get" action="${action}" > | |
| ${cursor} | |
| </form> |
| function ${name}(${parameters}) {${cursor}} |
| # GIT IMMERSION tutorial | |
| # http://gitimmersion.com/lab_11.html | |
| # Add the following to the .gitconfig file in your $HOME directory. | |
| [alias] | |
| co = checkout | |
| ci = commit | |
| st = status | |
| br = branch | |
| hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
| type = cat-file -t |
| # checkout the old tag | |
| git checkout old | |
| # create a new tag | |
| git tag new | |
| # delete the old tag on local git repository | |
| git tag -d old | |
| # delete the old tag on remote git repository | |
| git push origin :refs/tags/old |
| var vows = require('vows'); | |
| var assert = require('assert'); | |
| var testSuite = vows.describe('Scenario: Test Fake API Scenario'); | |
| testSuite.addBatch({ | |
| 'GIVEN some context' : { | |
| 'WHEN I do something' : { | |
| topic: function () { return something('value', this.callback); }, | |
| // then the do something should return anything |