Skip to content

Instantly share code, notes, and snippets.

@Samangie
Samangie / main.js
Created July 18, 2018 11:30
Read URL GET Variables Javascript
// Credits -- http://papermashup.com/read-url-get-variables-withjavascript/
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
@Samangie
Samangie / node-notes.md
Last active July 17, 2018 20:13
Node.js Notes DRAFT

What is Node.js?

Javascript runtime build on Chrome's V8 Javascript engine Javascript running on the server
Used to build powerful, fast & scalable web applications. Uses an event-driven, non-blocking I/O model

You can build a lot with node.js like:

  • REST APIs & Backend Applications
  • Real-Time Services (Chat, Games, etc) -> funktioniert gut mit socket.io,
  • Blogs, CMS, Social Applications