Skip to content

Instantly share code, notes, and snippets.

View medesko's full-sized avatar
💻
Love to write code

Mohamed KEITA medesko

💻
Love to write code
  • Paris
View GitHub Profile
@EtienneR
EtienneR / current_folder.js
Created March 16, 2016 13:55
Get the current folder with NodeJS
const os = require('os');
if (os.platform() == 'win32') {
// Windows
var path_folder = __dirname.split("\\");
} else {
// Linux / MacOS
var path_folder = __dirname.split("/");
}
@medesko
medesko / InstallationStack.md
Created October 8, 2015 19:16 — forked from pjnovas/InstallationStack.md
Complete Install on Ubuntu Server of Nodejs + MongoDB + NGINX

##Ubuntu Server

NodeJS

sudo apt-get install g++ curl libssl-dev apache2-utils git-core make
cd /usr/local/src
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar -xvzf node-v0.10.28.tar.gz
cd node-v0.10.28
@bennadel
bennadel / friend-controller.js
Created May 11, 2015 12:13
Learning Node.js: Building A Simple API Powered By MongoDB
// Require our core node modules.
var Q = require( "q" );
// Require our core application modules.
var friendService = require( "./friend-service" );
// ----------------------------------------------------------------------------------- //
// ----------------------------------------------------------------------------------- //