You are a skilled instructor who makes complex programming topics easy to understand. You come up with fun exercises so that your students can learn by doing. You are teaching an "Introduction to regex" class. Your goal is to teach students to be proficient with regex. Move one step at a time waiting for the student to provide the correct answer before you move to the next concept. If the student provides the wrong answer, give them a hint. The students are using JavaScript.
#include <iostream> | |
int main() { | |
int myArray[15] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; | |
for (int i = 0; i < 15; i++) { | |
if (myArray[i] % 3 == 0 && myArray[i] % 5 == 0) { | |
std::cout << "FizzBuzz" << std::endl; | |
} |
blazor.webassembly.js:1
u @ blazor.webassembly.js:1
blazor.webassembly.js:1 Unhandled Exception:
u @ blazor.webassembly.js:1
blazor.webassembly.js:1 System.TypeLoadException: EnC: we do not support patching of existing table cols. token=0x1800001d
u @ blazor.webassembly.js:1
blazor.webassembly.js:1 at System.Reflection.Metadata.MetadataUpdater.ApplyUpdate(Assembly assembly, ReadOnlySpan1 metadataDelta, ReadOnlySpan
1 ilDelta, ReadOnlySpan1 pdbDelta) u @ blazor.webassembly.js:1 blazor.webassembly.js:1 at Microsoft.Extensions.HotReload.HotReloadAgent.ApplyDeltas(IReadOnlyList
1 deltas)
u @ blazor.webassembly.js:1
=> ERROR [dev_containers_target_stage 6/6] RUN --mount=type=bind,from=de 6.9s | |
[2023-08-16T18:25:01.845Z] | |
[2023-08-16T18:25:01.845Z] [+] Building 8.7s (16/17) | |
=> [internal] load build definition from Dockerfile.extended 0.0s | |
[2023-08-16T18:25:01.845Z] => => transferring dockerfile: 2.85kB 0.0s | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> resolve image config for docker.io/docker/dockerfile:1.4 1.0s | |
[2023-08-16T18:25:01.845Z] => CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531b 0.0s |
A few items to be aware of...
- Press ENTER twice when using instructional comments. Copilot often requires the second line break to pick up on the intent correctly.
"There are two extension for GitHub Copilot. We'll look at both. The first one is the GitHub Copilot extension itself. You can install that from the extension marketplace. [show extension in marketplace]. Once installed, you'll need to sign-in with your GitHub account. If you don't already have an active Copilot subscription, you'll need to activate one in order to use GitHub Copilot."
# write a web scraper that will scrape CSS Tricks and FreeCodeCamp for all articles written by author Burke Holland | |
import requests | |
from bs4 import BeautifulSoup | |
import csv | |
# get the html from the page | |
page = requests.get("https://css-tricks.com/author/burkeholland/") | |
soup = BeautifulSoup(page.text, "html.parser") |
/* sans-serf font for html and body */ | |
html, | |
body { | |
font-family: sans-serif; | |
} | |
.header { | |
text-align: center; | |
/* fixed to the top */ | |
position: fixed; |
/** | |
* @param {string} s | |
* @return {boolean} | |
*/ | |
var isPalindrome = function (s) { | |
// two pointer method | |
left = 0; | |
right = s.length - 1; | |
sl = s.toLowerCase(); |
Visual Studio Code - Insiders (1.70.0-insider, undefined, desktop) | |
Jupyter Extension Version: 2022.7.1001981020. | |
Python Extension Version: 2022.10.1. | |
Workspace folder /Users/burkeholland/dev/burkeholland/data-science | |
info 10:2:5.997: ZMQ install verified. | |
User belongs to experiment group 'jupyterTestcf' | |
User belongs to experiment group 'jupyterEnhancedDataViewer' | |
info 10:2:7.16: LSP Notebooks experiment is enabled | |
info 10:2:8.518: Loading webview. View is notset | |
info 10:2:8.520: Loading web view... |