Skip to content

Instantly share code, notes, and snippets.

View peterquiel's full-sized avatar

Peter Quiel peterquiel

  • Freelancer
  • Germany, Paderborn
View GitHub Profile
@peterquiel
peterquiel / pm_install.sh
Created March 22, 2018 15:07 — forked from punkdata/pm_install.sh
Postman Install Ubuntu 17.10
#!/usr/bash
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
#Create a Desktop Entry
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
@peterquiel
peterquiel / cVimrc
Created February 15, 2018 10:11
My Chrom Vim Configuration
unmap h j k l
@peterquiel
peterquiel / grap_map_reduce_test.js
Last active July 14, 2016 16:56
Map Reduce Alg to calculate the distance between nodes in mongo db
var map = function() {
if (this._id == 1) {
emit(this._id, { distance: 0, name:'black' , childs: this.includes });
this.includes.forEach(function(it) {
emit(it, { distance: 1, name: 'gray', childs: [] })
});
} else {
emit(this._id, { distance: -1, name: 'white', childs: this.includes });
}
};