Skip to content

Instantly share code, notes, and snippets.

View deepak2431's full-sized avatar

Deepak Kumar deepak2431

View GitHub Profile
import React from 'react';
import TablesComp from '../../components/TablesComp';
import OptionStrikeCol from '../../components/OptionStrikeCol';
import { optionColumnNames } from './tableData';
import Grid from '@material-ui/core/Grid';
import { useSelector } from 'react-redux';
import { ScrollSync, ScrollSyncPane } from 'react-scroll-sync';
const OptionChainTable = () => {
@deepak2431
deepak2431 / centrifugo_1.js
Created September 1, 2021 07:48
Centrigugo subscription to multiple tokens react
import React, { useEffect, useState } from 'react';
import Centrifuge from 'centrifuge';
const Option = () => {
const [askPriceList, setAskPriceList] = useState([]);
const [askPriceT, setAskPriceT] = useState();
const [connected, setConnected] = useState(0);
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string s1, s2;
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 1.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
import requests
import json
from bs4 import BeautifulSoup as soup
s = requests.session()
URl = s.get('https://boodmo.com/catalog/3704-gaskets/m11290-maruti-swift_dzire/')
page_soup = soup(URl.text,"html5lib")
product_names = []
for p in range(0,len(products_list)):
p_str = products_list[p]
d = json.loads(p_str)
p_name = d["name"]
product_names.append(p_name)
prices_list = []
products_list = []
for link in containers:
p = link.find_all('a')
for h in p:
products, price = h.get('data-boodmo-products'), h.get('data-boodmo-price')
products_list.append(products)
prices_list.append(price)
<div class="products_block" id="products_block">
<div class="content_block">
<ul class="clear_fix">
<li>
<a data-boodmo-action="open" data-boodmo-action-field="click" data-boodmo-category="Interactions" data-boodmo-currency="INR" data-boodmo-label="productPage" data-boodmo-list="Catalog" data-boodmo-position="1" data-boodmo-price="124.00" data-boodmo-products='{"id":"5100820","number":"09247-14044","name":"PLUG, OIL DRAIN","familyId":"490","family":"Oil Drain Plug, oil pan","brand":"SUZUKIMARUTI","variant":"yes"}' data-event="event" href="/catalog/part-oil_drain_plug_oil_pan-5100820/" target="_blank">
<div class="image">
<img alt="Genuine Parts Guarantee" class="oem-icon" src="https://boodmo.com/img/oem_icon.png" width="65"/>
<span class="best-offer">Best Offer</span>
<img alt="PLUG, OIL DRAIN" src="https://boodmo.com/media/cache/catalog_list/images/parts/fe58b8eecf4
page_soup = soup(URl.text,"html5lib")
containers = page_soup.find_all("div",{"class":"products_block"})
import requests
import json
from bs4 import BeautifulSoup as soup
s = requests.session()
URl = s.get('https://boodmo.com/catalog/3704-gaskets/m11290-maruti-swift_dzire/')