Skip to content

Instantly share code, notes, and snippets.

View sudhakarbhra's full-sized avatar
🏠
Working from home

Sudhakar Behera sudhakarbhra

🏠
Working from home
View GitHub Profile
@sudhakarbhra
sudhakarbhra / embedded-file-viewer.md
Created July 2, 2021 06:08 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs 10 ppa (personal package archive) from nodesource
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
const MenuForm = ({ match }) => {
/** FORM HANDLING START
========================= */
// FORM STATE
const [categories, setCategories] = useState([]);
const [form, setForm] = useState({
productID: "",
isEnabled: false,
addOns: [],
});