Skip to content

Instantly share code, notes, and snippets.

View surajitbasak109's full-sized avatar
💭
Working from Office

Surajit Basak surajitbasak109

💭
Working from Office
View GitHub Profile
import React from "react";
import "./App.css";
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
searchItems: []
};
}
body {
font-family: "Century Gothic",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
"Noto Sans",
sans-serif,
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
ReactDOM.render(<App />, document.getElementById("root"));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>React Autocomplete Example</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"dev": "concurrently \"react-scripts start\" \"json-server --watch db.json --port 3004\""
},
[
{
"code": "001",
"name": "Pan Cake",
"unit": "Pcs",
"rate": "50.00"
},
{
"code": "002",
"name": "Chicken Pattise",
<?php
class DB
{
public $db = null;
public function __construct($db)
{
$this->db = $db;
}
@surajitbasak109
surajitbasak109 / media-query.css
Created January 7, 2020 09:04 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS

Remove Object from Array using JavaScript

How can I remove an object from an array? I wish to remove the object that includes name Ketty from someArray. For example:

someArray = [{name:"Kristian", lines:"2,5,10"},
             {name:"John", lines:"1,19,26,96"}];

I want to achieve:

{
"editor.fontFamily": "'Operator Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.wordWrap": "on",
"blade.format.enable": true, // if you would like to enable blade format
"vim.easymotion": true,
"vim.sneak": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,