-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
blog/2024-02-16-github-copilot-formatting-data-in-my-ide.md
This file contains 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
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
25
blog/2024-03-03-github-copilot-from-raw-data-to-json-array.md
This file contains 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
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. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.