Skip to content

Instantly share code, notes, and snippets.

View Mianto's full-sized avatar
🎯
Focusing

Siddhant Shaw Mianto

🎯
Focusing
View GitHub Profile
@Mianto
Mianto / scrape_questions.py
Created January 22, 2024 21:17
Scraping Question & Answers
from bs4 import BeautifulSoup
import requests
import csv
def main():
print("Scraping Begin")
print("--------------------------------")
qna = {}
for i in range (46):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mianto
Mianto / childToParent.es6
Created August 11, 2017 14:29
Basic example to pass values between parent and child components in React
/**
* Basic example to pass values between parent and child components in React
* Seems to be in line with this
* http://stackoverflow.com/questions/24147331/react-the-right-way-to-pass-form-element-state-to-sibling-parent-elements
* Now I have the state in parent and child. Is that good or bad? Why would I need it in child?
* Could probably take that out
* */
class Parent extends React.Component {
constructor(props) {
super(props);