dailylog 7-21-20

1 minute read

REMOVE FROM ARRAY

const index = array.indexOf(5);
if (index > -1) {
  array.splice(index, 1);
}

GTD_420 - Google Sheets

GTD_CCKL - Google Sheets

VIRGIN GALACTIC - Google Docs

danielcaraway.github.io

confirming_function - Google Sheets

JOIN_ATTEMPT_YES_ORG_LVL_1 Teammate Tenure by Exec Leader - 7.14.20 v1 - Google Sheets

Virgin Galactic: Performance Review - Google Slides

(5) CA COVID-19 Data | July 17 2020 : CoronavirusCA

California Department of Public Health - Organizations - California Open Data

COVID-19 Cases - Datasets - California Open Data

[White Elfa Mesh 2-Drawer Unit The Container Store](https://www.containerstore.com/s/elfa/best-selling-solutions/drawer-units/white-elfa-mesh-2-drawer-unit/123d?productId=10014852)

Welcome to the VG Team - Document Request - yesthisiskendra@gmail.com - Gmail

(5) Billionaire tells story about Firing 12 floors of people [8:34] : mealtimevideos

Extensions

[Amandas Closet (@clothespanda) Poshmark](https://poshmark.com/closet/clothespanda?department=Women&category=Shoes&brand[]=J. Crew)

Chrome: The message port closed before a response was received. · Issue #130 · mozilla/webextension-polyfill

chrome.storage - Google Chrome

local storage - Chrome extension: accessing localStorage in content script - Stack Overflow

accessing chrome storage from popup - Google Search

chrome.storage - Google Chrome

(18) Buy Nothing Atwater Village & Silver Lake (North) Los Angeles CA | Facebook

Write your words

VG_EDA

Home Page - Select or create a notebook

Projects/covid19_20200720/

VG_DATA_CLEANING - Jupyter Notebook

VG_DATA_CLEANING_2 - Jupyter Notebook

VG_CLEAN - Jupyter Notebook

python - Convert columns to string in Pandas - Stack Overflow

COVID19_VG_PIPE - Jupyter Notebook

python - How to select rows from a DataFrame based on column values? - Stack Overflow

pandas.DataFrame.set_index — pandas 1.0.5 documentation

// Uncomment when script issue resolved
import React, { useEffect, useState } from "react";
import ItemList from "./ItemList";

let myItems = [
  {
    id: 1,
    name: "uli",
  },
  {
    id: 2,
    name: "mike",
  },
  {
    id: 3,
    name: "pippin",
  },
];
const Dashboard = () => {
  const [items, setItems] = useState(myItems);
  const [selected, setSelected] = useState(["thing"]);

  const handleSelection = (id) => {
    const updatedSelection = [...selected];
    const selectedId = selected.indexOf(id);
    if (selectedId === -1) {
      updatedSelection.push(id);
    } else {
      updatedSelection.splice(selectedId, 1);
    }
    setSelected(updatedSelection);
    console.log("selected!", id, selected);
  };
  // useEffect(() => {
  //   setSelected(selected);
  // }, [selected]);
  return (
    <div>
      <h2>Dashboard</h2>
      {selected.length > 0 && selected.map((selection) => <p>selection</p>)}
      <ItemList items={items} setSelected={handleSelection} />
    </div>
  );
};
export default Dashboard;