Skip to content

Instantly share code, notes, and snippets.

View burkeholland's full-sized avatar

Burke Holland burkeholland

  • Microsoft
  • Franklin, TN
View GitHub Profile
@burkeholland
burkeholland / script.md
Last active August 28, 2023 17:27
Copilot Demo Script

Copilot Demo Script

A few items to be aware of...

  1. Press ENTER twice when using instructional comments. Copilot often requires the second line break to pick up on the intent correctly.

Ghost Text

"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."

@burkeholland
burkeholland / items.md
Last active August 18, 2023 17:21
Blazor Feedback

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, ReadOnlySpan1 ilDelta, ReadOnlySpan1 pdbDelta) u @ blazor.webassembly.js:1 blazor.webassembly.js:1 at Microsoft.Extensions.HotReload.HotReloadAgent.ApplyDeltas(IReadOnlyList1 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
@burkeholland
burkeholland / scraper.py
Last active May 30, 2023 14:02
scraper
# 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")
@burkeholland
burkeholland / index.css
Last active May 9, 2023 02:04
copilot-demo
/* 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();
@burkeholland
burkeholland / FileReader.md
Last active September 30, 2022 08:12
Reading A Local JSON File With NativeScript

In NativeScript, the http module doesn't currently support making network requests to the local file system. That work is intended to be done by the file reader. It's pretty simple to read a local file and parse its contents as JSON.

This is the TypeScript/Promise version of what Emil Oberg created for the same question on StackOverflow. This module should be reusable for any and all asyncronous local JSON read operations.

import * as fs from 'file-system';

var documents = fs.knownFolders.currentApp();

class FileReader {
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...
@burkeholland
burkeholland / Titanic.ipynb
Created November 15, 2021 23:56
Titanic Changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@burkeholland
burkeholland / Titanic.ipynb
Created November 15, 2021 23:55
my notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.