Skip to content

Instantly share code, notes, and snippets.

View anmolsukki's full-sized avatar
🎯
Software Engineer | Web Developer

Anmol Kumar Singh anmolsukki

🎯
Software Engineer | Web Developer
View GitHub Profile
@anmolsukki
anmolsukki / MongoDB.md
Last active May 4, 2020 15:53
MongoDB Basics

MongoDB Create Collections

insert Collections

db.collection_name.insert([{
    name : "Anmol",
    roll_no : 452,
    college : "SVIET",
    year : 2017,

language : ["Android", "Reactjs", "MongoDB"]

@anmolsukki
anmolsukki / DeployBuild.md
Created May 4, 2020 16:27
Deploy Build On Server

Deploy Build on Server

  1. Server Username run in terminal.

  2. Password.

sudo apt-get update

sudo apt-get install nginx
import React from "react";
import Rahul from "./Components/Rahul";
import Rose from "./Components/Rose";
function App() {
return (
<div className="App">
<Rahul camp="120" />
<Rose camp="140" />
</div>
.AutoCompleteText {
width: 50%;
border: 1px solid grey;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px 1px rgba(0, 0, 0, 0.18);
font-size: 14px;
color: rgba(0, 0, 0, 0.73);
}
.AutoCompleteText input {
width: 100%;
.wrapper {
height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #258ea6;
}
@anmolsukki
anmolsukki / index.js
Last active May 5, 2020 12:06
[ NodeJs ] WritFileSync Create file. ( https://repl.it/@anmolsukki/writeFileSync )
const fs = require("fs")
fs.writeFileSync("notes.txt", "My Name is Anmol")
fs.appendFileSync("notes.txt", " Lives in Chandigarg")
const add = function(a, b) {
return a + b
}
module.exports = add
console.log("Anmol")
const name = "Anmol"
module.exports = name
const chalk = require("chalk");
console.log(chalk.blue("Success!"))
const blueMessage = chalk.yellow("Succes!")
console.log(blueMessage)
const boldYellow = chalk.bold.yellow("Succes!")
console.log(boldYellow)
const boldInverse = chalk.bold.inverse.blue("Succes!")