Skip to content

Instantly share code, notes, and snippets.

View rahulkrishnan98's full-sized avatar
🏠
Working from home

Rahul Krishnan rahulkrishnan98

🏠
Working from home
View GitHub Profile
.
.
.
"license": "MIT",
"babel": {
"presets": [
"env",
"react"
]
},
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './app/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index_bundle.js'
},
module: {
@rahulkrishnan98
rahulkrishnan98 / index.css
Created September 12, 2017 10:11
React Tutorial Blog on medium
body {
background : green;
}
var r = JSON.parse(xhr.responseText);
var dis = "current IP:" + r.ip + "
"
document.write(dis);
function processRequest(e){
if(xhr.readyState == 4 && xhr.status == 200) {}
}
xhr.send();
var xhr = new XMLHttpRequest();
xhr.open('GET', "//ipinfo.io/json", true);
var xhr=new XMLHttpRequest();
xhr.open("GET","http://ipinfo.io/json", true);
xhr.send();
xhr.addEventListener("readystatechange", processRequest , false);
function processRequest(e){
if(xhr.readyState == 4 && xhr.status == 200) {
var r = JSON.parse(xhr.responseText);
var dis = "current IP:" + r.ip
document.write(dis);
@rahulkrishnan98
rahulkrishnan98 / npm-log
Created March 3, 2017 15:49
Description of the error log
npm ERR! Linux 4.4.0-64-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.6.0
npm ERR! npm v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! science.mozilla.org@1.0.0 start: `npm run build && npm-run-all --parallel server:dev watch:**`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the science.mozilla.org@1.0.0 start script 'npm run build && npm-run-all --parallel server:dev watch:**'.