This file contains 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
#input | |
csvValue ="col1,col2,col3\n1,pixel5,55\n2,pixel6,10" | |
ValueSeperatedByN = csvValue.split('\n') | |
res = {} | |
for i,index in enumerate(ValueSeperatedByN): | |
newValues = index.split(',') | |
values = [] | |
for j in newValues: |
This file contains 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
# Python Way | |
a = 5 | |
b = 10 | |
a,b = b,a | |
# ================= |
This file contains 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 Button from './components/button' | |
// Main App | |
function App() { | |
return ( | |
<div className="App"> | |
// Component Button : with props as -> "button_name" and pass any value. | |
<Button button_name="Press me !" /> |
This file contains 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, { useState, useEffect, Fragment, useContext } from 'react'; | |
import '../css/app/App.css'; | |
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom'; | |
import { AiContent } from '../contexts/ai_content.js'; | |
import Topbar from '../../../Shared/Topbar'; | |
import TopNav from '../../../Shared/Topnav'; | |
import InnerNav from '../../../Shared/InnerNav'; | |
import Slider from '@material-ui/core/Slider'; | |
import Cards from '../../../Shared/Cards/ContentAutomationCart'; | |
import ClipLoader from 'react-spinners/BeatLoader'; |
This file contains 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, { useState, useEffect, useContext } from 'react' | |
import '../css/app/App.css'; | |
import EditorProvider from '../contexts/summary_Context.js'; | |
import AiContentProvider from '../contexts/ai_content'; | |
import TextEditor from './text_editor_component.js'; | |
import ResultSection from './result_Section.js'; | |
function AIContentWriter(props) { | |
const [searchQuery, setsearchQuery] = useState(props.location && props.location.query); |
This file contains 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, { useState,useEffect, Fragment, useContext } from 'react'; | |
import '../css/app/App.css'; | |
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom'; | |
import { AiContent } from '../contexts/ai_content.js'; | |
import Topbar from '../../../Shared/Topbar'; | |
import TopNav from '../../../Shared/Topnav'; | |
import InnerNav from '../../../Shared/InnerNav'; | |
import Slider from '@material-ui/core/Slider'; | |
import Cards from '../../../Shared/Cards/ContentAutomationCart'; | |
import ClipLoader from 'react-spinners/BeatLoader'; |
This file contains 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, { useState } from "react"; | |
import { Link, useHistory } from "react-router-dom"; | |
import { Auth } from "aws-amplify"; | |
import { createMuiTheme, makeStyles } from "@material-ui/core/styles"; | |
import Axios from 'axios'; | |
import BarLoader from "react-spinners/PulseLoader"; |
This file contains 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 json | |
import pprint | |
data = {} | |
def choice(): | |
ch = 0 | |
print("Enter 1 to add ") | |
print("Enter 2 to edit ") |
This file contains 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 json | |
data = {} | |
user = [] | |
with open('data.json', 'r') as j: | |
json_data = json.load(j) | |
print(json_data) | |
name = input("Name : ") |
NewerOlder