No. | badges |
---|---|
1 | Coder |
2 | Communication |
3 | Community |
4 | Designer |
5 | Inc |
6 | Multimedia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>PDF Preview</title> | |
</head> | |
<body> | |
<!-- Method 1 --> | |
<embed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
app.use(express.static(path.join(__dirname, 'build'))); | |
app.get('/', function(req, res) { | |
res.sendFile(path.join(__dirname, 'build', 'index.html')); | |
}); | |
app.listen(9000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
class Storage extends Component { | |
setData = () => { | |
let obj = { name: "Anmol", age: "24", email: "[email protected]" }; | |
localStorage.setItem("myData", JSON.stringify(obj)); | |
}; | |
getData = () => { | |
let data = localStorage.getItem("myData"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
items: [ | |
{ title: "first", body: "This Is First" }, | |
{ title: "Second", body: "This Is Second" }, | |
{ title: "Third", body: "This Is Third" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
class Home extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
AccordionData: [ | |
{ expanded: false, title: "collapse 1", body: "Accordian Example 1" }, | |
{ expanded: false, title: "collapse 2", body: "Accordian Example 2" }, | |
{ expanded: false, title: "collapse 3", body: "Accordian Example 3" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import axios from "axios"; | |
const APIKEY = "AIzaSyDFVJQ4ucMjge4_7z3wIBlN4BQxAiI2f9c"; | |
const ChannelID = "UCblDw1QEzTOL2CFO_BeV3Sw"; | |
const result = 10; | |
var finalURL = `https://www.googleapis.com/youtube/v3/search?key=${APIKEY}&channelId=${ChannelID}&part=snippet,id&order=date&maxResults=${result}`; | |
class App extends React.Component { | |
constructor(props) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# another shell script | |
echo "This script is succesfully running." | |
echo "Have Fun." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Database Name to backup | |
MONGO_DATABASE="dbname" | |
# Database host name | |
MONGO_HOST="127.0.0.1" | |
# Database port | |
MONGO_PORT="27017" | |
# Backup directory | |
BACKUPS_DIR="/Users/deepak/Desktop/BackupFile/$MONGO_DATABASE" | |
# Database user name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const yargs = require('yargs') | |
const notes = require('./notes.js') | |
// Customize yargs version | |
yargs.version('1.1.0') | |
// Create add command | |
yargs.command({ | |
command: 'add', | |
describe: 'Add a new note', |