Skip to content

Commit a73188c

Browse files
committed
add new copilot example
1 parent e487b9b commit a73188c

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Efficiently Format Data in My IDE with GitHub Copilot"
3+
description: "Discover how GitHub Copilot streamlines the formatting of data extracted from GitHub Issues"
4+
tags: [coding with copilot, github, copilot, issue,]
5+
keywords: [coding with copilot, github, copilot, issue,]
6+
image: /images/posts/2024-02-16/header.png
7+
date: "2024-02-16T06:12"
8+
---
9+
10+
In this brief demonstration, I showcase how GitHub Copilot help me to format data sourced from a web page and pasted into my IDE. By simply copying information from a webpage and pasting it into my coding environment, I initiate the process.
11+
12+
Then, with a straightforward inquiry directed to Copilot Inline Chat, I effortlessly extract specific details —such as GitHub Handles— from the text and neatly organize them into a CSV format:
13+
14+
<iframe width="560" height="315" src="https://www.youtube.com/embed/xAC6_gjQOeA?si=Ej10BtTeUjwjeu-y" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
15+
16+
17+
Although this isn't a task I tackle daily, especially with GitHub Handles, I wanted to illustrate another practical application of Copilot that can significantly assist in your coding endeavors.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "Effortlessly Generate JSON Arrays from Raw Data with GitHub Copilot"
3+
description: "Discover how GitHub Copilot simplifies the creation of JSON arrays from raw data, streamlining the process of updating product catalogs"
4+
tags: [coding with copilot, github, copilot, json, data]
5+
keywords: [coding with copilot, github, copilot, json, data]
6+
image: /images/posts/2024-03-03/header.png
7+
date: "2024-03-03T06:12"
8+
---
9+
10+
When developing my WindR application, I frequently encounter the task of adding new entries to the product catalog, a process that hasn't yet been automated. Consequently, I find myself creating JSON documents for the MongoDB database.
11+
12+
Products such as boards, sails, fins, and foils possess diverse specifications that vary depending on their type. Extracting these values from official product websites can be laborious, particularly when field names differ across brands, as illustrated by the example of two sails from different manufacturers:
13+
14+
![Patrik](/images/posts/2024-03-03/patrik.png)
15+
16+
![Duotone](/images/posts/2024-03-03/duotone.png)
17+
18+
In the accompanying video, I demonstrate how I leverage Copilot Chat to extract data from copied website content. By providing a simple prompt outlining the array-to-JSON attribute mapping, I swiftly convert the data:
19+
20+
21+
<iframe width="560" height="315" src="https://www.youtube.com/embed/WrfpGJz-2B4?si=vuMaeAGf-DuSCA7g" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
22+
23+
24+
This approach streamlines the addition of new products to my catalog. Looking ahead, I aim to automate this process using a combination of a small script and GenAI programming. However, that's a tale for another time.
25+
320 KB
Loading
41.9 KB
Loading
354 KB
Loading
68.2 KB
Loading

0 commit comments

Comments
 (0)