This file contains 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
function HashTable() { | |
this._bucketSize = 23; | |
this._buckets = []; | |
this._buckets.length = this._bucketSize; | |
} | |
HashTable.prototype.computeHash = function (key) { | |
var total = 0; | |
for (var i = 0; i < key.length; i++) { | |
total += key.charCodeAt(i); |
This file contains 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
History: | |
--all searches over the entire repository instead of only in the current branch | |
- git log --oneline (compressed, one line for commit) | |
- git log --grep <regex> (searches for commits with the given regex expression in their message) | |
- git log -Smysearchstring (searches for all the commits that contain any change for mysearchstring in this branch, that is, it looks at | |
files contents, not to commit messages.) | |
- git log --pretty=format:"%Cgreen%h %Cred%cn %Cblue%s" | |
- git log --pretty=format:"%<|(20) %Cgreen%h %Cred%cn %Cblue%s" (with column) |