Skip to content

Instantly share code, notes, and snippets.

View frontend-gist's full-sized avatar

frontend-gist

View GitHub Profile
git checkout -b myFeature develop
// Mongo configuration file
/etc/mongod.conf
// Start Mongo service
sudo service mongod start
// Check if Mongo is running, last line should be: "[initandlisten] waiting for connections on port 27017"
cat /var/log/mongodb/mongod.log
// Check if Mongo is running
/* --------------------- Variables --------------------- */
/* SCSS */
$primary-color: #333;
body {
color: $primary-color;
}
@frontend-gist
frontend-gist / Basic NodeJS
Last active August 29, 2015 14:24
Node.js
// --------------------------- create basic server --------------------------- \\
var http = require("http");
var myServer = http.createServer(function (request, response) {
response.writeHead(200, {"Content-type": "text/html"});
response.write("<p><strong> hello </strong> batkan </p>");
response.end();
});
myServer.listen(3000);
// app.js ----------------------------------------------------
'use strict';
angular
.module('app', [
'ngSanitize',
'ngAnimate',
'ngTouch',
'ui.bootstrap',