Migrei o post para meu blog, por favor clique no link abaixo:
http://blog.rafaelrosafu.info/2013/07/16/imigrando-e-vivendo-no-canada-um-guia-nada-imparcial.html
Obrigado aos que deixaram comentários :)
/** | |
* Implementação do algorítimo SoundEx em Javascript. | |
* @author João Batista Neto | |
* | |
* SoundEX é um algorítimo fonético para indexação de nomes pelo som segundo | |
* sua pronúncia. O algorítimo foi desenvolvido por Robert C. Russell e | |
* Margaret K. Odell e patenteado em 1918 e 1922. | |
* {@link http://en.wikipedia.org/wiki/Soundex} | |
* | |
* @return {String} |
/** | |
* ECMAScript 5 implementation of Python's range function. | |
* @see {@link http://docs.python.org/release/1.5.1p1/tut/range.html} | |
* @param {Number} start | |
* @param {Number} end | |
* @param {Number} step | |
* @param {Boolean} includeEndpoint | |
* @return {Array} | |
*/ | |
Object.defineProperty(Array, "range", { |
Migrei o post para meu blog, por favor clique no link abaixo:
http://blog.rafaelrosafu.info/2013/07/16/imigrando-e-vivendo-no-canada-um-guia-nada-imparcial.html
Obrigado aos que deixaram comentários :)
var http = require('http'); | |
var parseTrack = function (data) { | |
var trackLines = data.replace(/[\r\n]/g, '').replace(/<\/tr>/gi, '</tr>\n').match(/<tr.*?>(.*)<\/tr>/gi); | |
trackLines.shift(); | |
var parsed = [], parts = []; | |
var length = trackLines.length; | |
var details, date, track; | |
while (length--) { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Children are created, raised, cared for and we hope that they will live a long and proud life only to end long after their creator's has ended. They are their creator's legacy.
Your code is not your child, it is an animal raised for slaughter. Your code will die. It will die before your death. Your code's entire purpose is to die. Your code enables some new function and if successful that new function will grow, it will mature, it will eventually outlive the usefullness you've provided. When successful your code creates value that outlives it and the faster the better. When unsuccessful a mercy killing is most appropriate.
Believing that our code is our children makes us territorial, protective. Nobody is allowed to kill it, only improve it. The idea that our code can be perfect, that it can change to handle so many new concerns leads to the birth of frameworks and plugin systems. These systems brutalize creativity by forcing new value to conform to the standards of our aging children.
Having esformatter installed - TL;DR: npm install -g esformatter
- insert these lines to your ~/.vimrc
file.
tjs
is the shortcut to execute esformatter on your file.
nnoremap <silent> tjs :%!esformatter <Enter>
vnoremap <silent> tjs :!esformatter <Enter>
TODO: filter the command to run only on .js files.
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.