Skip to content

Instantly share code, notes, and snippets.

function HashTable(size) {
this.size = size;
this.keys = this.initArray(size);
this.values = this.initArray(size);
this.limit = 0;
}
HashTable.prototype.initArray = function(size) {
var array = [];
for (var i = 0; i < size; i++) {
@SamEBae
SamEBae / git.md
Created January 23, 2020 18:36
Git Tips

Delete merged branches:

git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -d
@SamEBae
SamEBae / .bash_profile
Created January 20, 2020 00:45
My Aliases
alias gaip='git add . -i --patch'
alias gcane='git commit --amend --no-edit'
alias gprum='git pull --rebase upstream master'
alias gpsu='git push --set-upstream origin spark_config