This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Router> | |
<div className="main"> | |
<Nav user={user} /> | |
<div className="container"> | |
<Switch> | |
<Route path="/" exact> | |
<Home /> | |
</Route> | |
<Route path="/edit/:id?"> | |
<Edit /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router.post('/pug/found', function(req, res, next){ | |
if(!req.body.user.email){ | |
return res.status(422).json({errors: {email: "can't be blank"}}); | |
} | |
const pug = new LostPug(req.body.pug); | |
return pug.save().then(function(){ | |
console.log(lostPug); | |
return res.json({pug: JSON.stingify(pug)}); // in the video, change the "stingify" to "stringify" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a test malicious script | |
// It does not actually do anything malicious | |
const fs = require("fs").promises; | |
async function main() { | |
const dirs = await fs.readdir("/"); | |
dirs.forEach((dir) => { | |
console.log(dir); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
nvm_install_script=https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | |
NVM_DIR="$HOME/.nvm" | |
NVM_NODE_VERSION=14 | |
if [ ! -d "$HOME/.nvm" ]; then | |
echo "> Downloading NVM..." | |
curl -s -o- $nvm_install_script | bash >/dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "79ef3e4b-b161-483f-a66f-d623adf3e6d7", | |
"meta-version": "1.0", | |
"userId": "burkeholland", | |
"vanityUrl": "build2019", | |
"description": "All the resources from Burke and Cecil's Build 2019 talk, \"The good, the bad and the ugly of Serverless\".", | |
"links": [ | |
{ | |
"id": "https://github.com/the-urlist", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Single red garden gnome", | |
"price": 56, | |
"brand": { | |
"name": "Home & Pro tools" | |
}, | |
"stockUnits": 98 | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Single red garden gnome", | |
"price": 56, | |
"imageUrl": "https://ttstorageucrqili3hgqvk.blob.core.windows.net/product-list/6112251.jpg", | |
"brand": { | |
"name": "Home & Pro tools" | |
}, | |
"type": { | |
"code": "gardening", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("https://use.fontawesome.com/releases/v5.6.3/css/all.css"); | |
/* UTILTIES */ | |
@keyframes spinAround { | |
from { | |
transform: rotate(0deg); } | |
to { | |
transform: rotate(359deg); } } | |
.input, .textarea, .button { | |
-moz-appearance: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/s/add" | |
@using System.Collections.Generic | |
@using System.Net.Http | |
@using LinkyLink.Models | |
@inject NavigationManager NavigationManager | |
@inject HttpClient Http | |
<div id="listDetails" class="addbar flex is-horizontally-centered"> | |
<div class="container main"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure the subscription is set to Ignite The Tour | |
az account set --subscription cd400f31-6f94-40ab-863a-673192a3c0d0 | |
# Reset the ApiUrl and APIShoppingCart Application Settings to default "broken" values | |
echo "Setting East US back to a broken state..." | |
az webapp config appsettings set -g apps50-frontend -n tailwindtraders-website-eastus-apps50-frontend --settings ApiUrl=http://AKS_BACKEND_ENDPOINT/webbff/v1 --output none | |
az webapp config appsettings set -g apps50-frontend -n tailwindtraders-website-eastus-apps50-frontend --settings ApiUrlShoppingCart=http://AKS_BACKEND_ENDPOINT/cart-api --output none | |
# Reset the ApiUrl and APIShoppingCart Application Settings to default "broken" values | |
echo "Setting Australia East back to a broken state..." |