Skip to content

Commit

Permalink
add new copilot example
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrall committed Mar 3, 2024
1 parent e487b9b commit a73188c
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
17 changes: 17 additions & 0 deletions blog/2024-02-16-github-copilot-formatting-data-in-my-ide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Efficiently Format Data in My IDE with GitHub Copilot"
description: "Discover how GitHub Copilot streamlines the formatting of data extracted from GitHub Issues"
tags: [coding with copilot, github, copilot, issue,]
keywords: [coding with copilot, github, copilot, issue,]
image: /images/posts/2024-02-16/header.png
date: "2024-02-16T06:12"
---

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.

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:

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


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.
25 changes: 25 additions & 0 deletions blog/2024-03-03-github-copilot-from-raw-data-to-json-array.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "Effortlessly Generate JSON Arrays from Raw Data with GitHub Copilot"
description: "Discover how GitHub Copilot simplifies the creation of JSON arrays from raw data, streamlining the process of updating product catalogs"
tags: [coding with copilot, github, copilot, json, data]
keywords: [coding with copilot, github, copilot, json, data]
image: /images/posts/2024-03-03/header.png
date: "2024-03-03T06:12"
---

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.

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:

![Patrik](/images/posts/2024-03-03/patrik.png)

![Duotone](/images/posts/2024-03-03/duotone.png)

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:


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


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.

Binary file added static/images/posts/2024-02-16/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/posts/2024-03-03/duotone.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/posts/2024-03-03/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/posts/2024-03-03/patrik.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a73188c

Please sign in to comment.