Skip to content

Instantly share code, notes, and snippets.

View selvaonline's full-sized avatar
🎯
Focusing

Selvakumar Murugesan selvaonline

🎯
Focusing
View GitHub Profile
//Initialize a directory with git
cd "path to your local repo"
git init
git add . # if you want to commit everything. Otherwise use .gitconfig files
git commit -m "initial commit" # If you change anything, you can add and commit again...
//Connect to remote repo
git remote add origin https://...
git remote show origin # if everything is ok, you will see your remote
git push -u origin master # assuming your are on the master branch.
@selvaonline
selvaonline / Ractive JS
Last active February 19, 2018 10:32
Notes on Ractive JS
Ractive JS - it has the combination of both angular & react great features
Mustach Templates - Partial Templates
Events & Method Calls -Proxy Events, Method Calls
LifeCycle Events - Render
2 Way Data Binding
Observers
Transitions & Animations
Project with Ractive & NodeJs (WebPack & Babel)
It is UI library. It is like Reactive.
Ractive.js is a template driven, UI and DOM manipulation library that transforms templates into blueprints for interactive applications.
@selvaonline
selvaonline / Mongo DB
Last active February 20, 2018 03:55
Mongo DB
Start Mongodb as a service - Mongodb Initial Setup Flags
Run the below command in CMD by running CMD as "Admin"
c:\mongodb\bin>mongod --logpath c:\mongodb\logs\mongo.log --dbpath c:\mongodb\data\db --directoryperdb --install
c:\mongodb\bin>net start MongoDB
Now You can see as below
C:\mongodb\bin>net start MongoDB
The MongoDB service is starting.
The MongoDB service was started successfully.