Skip to content

Instantly share code, notes, and snippets.

View nnnkit's full-sized avatar
🎯
Focusing

Ankit nnnkit

🎯
Focusing
View GitHub Profile
@nnnkit
nnnkit / object.js
Last active September 20, 2018 16:05
destructure
var character = {
firstName: "Tyrion",
lastName: "Lannister",
job: "Hand Of The Queen",
siblings: ["Cersei Lannister", "Jaime Lannister"]
};
// For the following output
//'Tyrion Lannister is the Hand Of The Queen and his siblings are Cersei Lannister & Jaime Lannister'
// We do something like this
@nnnkit
nnnkit / data.json
Created October 20, 2018 06:12
List of movies
{
"status":"ok",
"status_message":"Query was successful",
"data":{
"movie_count":9019,
"limit":50,
"page_number":1,
"movies":[
{
"id":9380,
@nnnkit
nnnkit / webpack.config.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
const path = require("path");
const webpack = require("webpack");
const HTMLGen = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
@nnnkit
nnnkit / webpack.config.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
const path = require("path");
const webpack = require("webpack");
const HTMLGen = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
@nnnkit
nnnkit / webpack.config.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
const path = require("path");
const webpack = require("webpack");
const HTMLGen = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
@nnnkit
nnnkit / webpack.config.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
const path = require("path");
const webpack = require("webpack");
const HTMLGen = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
@nnnkit
nnnkit / webpack.config.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
const path = require("path");
const webpack = require("webpack");
const HTMLGen = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
@nnnkit
nnnkit / webpack.config.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
const path = require("path");
const webpack = require("webpack");
const HTMLGen = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
@nnnkit
nnnkit / async.js
Created January 15, 2019 04:40
Async-Await
const makeRequest = () =>
getJSON()
.then(data => {
console.log(data)
return "done"
})
makeRequest()
@nnnkit
nnnkit / quiz.js
Created January 5, 2019 10:42
Webpack Config For Code Splitting
{
"info": {
"title": "Git Commands Level 1",
"description": "This quiz tests your basic knowledge of Git commands.",
"tags": ["git"]
},
"questions": [
{
"question": "Which command is used to check the state of your local repository since your last commit?",
"options": ["git check", "git status", "git commit", "git diff"],