Skip to content

Instantly share code, notes, and snippets.

View dariuszpaluch's full-sized avatar
😃

Dariusz Paluch dariuszpaluch

😃
View GitHub Profile
@dariuszpaluch
dariuszpaluch / host-react-app-on-apache-server.md
Created August 5, 2018 13:03 — forked from ywwwtseng/host-react-app-on-apache-server.md
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production

@dariuszpaluch
dariuszpaluch / uri.js
Created July 2, 2018 10:25 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"