Skip to content

Instantly share code, notes, and snippets.

View dipakkr's full-sized avatar
🌴
Working remotely

Deepak Kumar dipakkr

🌴
Working remotely
View GitHub Profile
@dipakkr
dipakkr / Table.js
Last active December 16, 2019 19:15
import React from 'react'
import ListItem from './ListItem';
export class Table extends React.Component {
// Dummy data for the table
state = {
data: tableData
}
import React from 'react';
const ChildComponent = (props) => {
return(
<h2> {props.message} </h2>
);
}
export default ChildComponent;
import React from 'react'
import ChildComponent from './ChildComponent';
class ParentComponent extends React.Component {
render(){
return(
<div>
<ChildComponent message="Data from first component"/>
</div>
);
import cv2
import numpy as np
image = cv2.imread('image.jpg')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# template image