-
Notifications
You must be signed in to change notification settings - Fork 376
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
konfig-bot
committed
Oct 25, 2023
1 parent
77c1b5b
commit 71ce8c3
Showing
79 changed files
with
285 additions
and
22 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+63.4 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/90-percent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/clippy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+219 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/decades.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+281 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/disaster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+243 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/fall-short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/far-worse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/incorrect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.1 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/job-worry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.5 KB
...nfig-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/lying.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+135 KB
...ocs/blog/2023/10/github-copilot-assets/slides/after/bad-results/months-bugs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
...ocs/blog/2023/10/github-copilot-assets/slides/after/better-software/amazing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+150 KB
...0/github-copilot-assets/slides/after/better-software/better-code-docs-tests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 KB
...log/2023/10/github-copilot-assets/slides/after/better-software/higher-level.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.1 KB
...3/10/github-copilot-assets/slides/after/better-software/really-super-powers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+70.3 KB
...blog/2023/10/github-copilot-assets/slides/after/better-software/super-power.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+229 KB
...og/2023/10/github-copilot-assets/slides/after/better-software/test-coverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.9 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/calculator/calculator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+113 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/calculator/cheating-math.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.3 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/calculator/corner-drag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+128 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/after/calculator/interns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+218 KB
...blog/2023/10/github-copilot-assets/slides/after/calculator/not-equally-good.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+223 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/after/calculator/pros-cons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.2 KB
...s/blog/2023/10/github-copilot-assets/slides/after/faster-software/10-20-pct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.3 KB
...log/2023/10/github-copilot-assets/slides/after/faster-software/30-line-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+341 KB
...log/2023/10/github-copilot-assets/slides/after/faster-software/boring-stuff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+190 KB
...2023/10/github-copilot-assets/slides/after/faster-software/hours-to-minutes.png
Oops, something went wrong.
Binary file added
BIN
+309 KB
...ocs/blog/2023/10/github-copilot-assets/slides/after/faster-software/mundane.png
Oops, something went wrong.
Binary file added
BIN
+248 KB
...log/2023/10/github-copilot-assets/slides/after/faster-software/near-perfect.png
Oops, something went wrong.
Binary file added
BIN
+130 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/faster-software/tedium.png
Oops, something went wrong.
Binary file added
BIN
+100 KB
...og/2023/10/github-copilot-assets/slides/after/faster-software/twice-as-fast.png
Oops, something went wrong.
Binary file added
BIN
+122 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/faster-software/worth-it.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...23/10/github-copilot-assets/slides/after/more-problems/caused-more-problems.png
Oops, something went wrong.
Binary file added
BIN
+214 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/after/more-problems/hassle.png
Oops, something went wrong.
Binary file added
BIN
+182 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/more-problems/interferes.png
Oops, something went wrong.
Binary file added
BIN
+109 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/more-problems/junior-dev.png
Oops, something went wrong.
Binary file added
BIN
+96.3 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/more-problems/screwed.png
Oops, something went wrong.
Binary file added
BIN
+386 KB
...s/blog/2023/10/github-copilot-assets/slides/after/more-problems/subtle-bugs.png
Oops, something went wrong.
Binary file added
BIN
+69.8 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/bad-results/90-percent.png
Oops, something went wrong.
Binary file added
BIN
+53 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/clippy.png
Oops, something went wrong.
Binary file added
BIN
+224 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/decades.png
Oops, something went wrong.
Binary file added
BIN
+269 KB
...-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/disaster.png
Oops, something went wrong.
Binary file added
BIN
+235 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/bad-results/fall-short.png
Oops, something went wrong.
Binary file added
BIN
+144 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/far-worse.png
Oops, something went wrong.
Binary file added
BIN
+112 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/incorrect.png
Oops, something went wrong.
Binary file added
BIN
+106 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/job-worry.png
Oops, something went wrong.
Binary file added
BIN
+82.4 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/lying.png
Oops, something went wrong.
Binary file added
BIN
+144 KB
...cs/blog/2023/10/github-copilot-assets/slides/before/bad-results/months-bugs.png
Oops, something went wrong.
Binary file added
BIN
+123 KB
...cs/blog/2023/10/github-copilot-assets/slides/before/better-software/amazing.png
Oops, something went wrong.
Binary file added
BIN
+150 KB
.../github-copilot-assets/slides/before/better-software/better-code-docs-tests.png
Oops, something went wrong.
Binary file added
BIN
+111 KB
...og/2023/10/github-copilot-assets/slides/before/better-software/higher-level.png
Oops, something went wrong.
Binary file added
BIN
+82.4 KB
.../10/github-copilot-assets/slides/before/better-software/really-super-powers.png
Oops, something went wrong.
Binary file added
BIN
+80 KB
...log/2023/10/github-copilot-assets/slides/before/better-software/super-power.png
Oops, something went wrong.
Binary file added
BIN
+222 KB
...g/2023/10/github-copilot-assets/slides/before/better-software/test-coverage.png
Oops, something went wrong.
Binary file added
BIN
+79.1 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/calculator/calculator.png
Oops, something went wrong.
Binary file added
BIN
+121 KB
...s/blog/2023/10/github-copilot-assets/slides/before/calculator/cheating-math.png
Oops, something went wrong.
Binary file added
BIN
+89.7 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/calculator/corner-drag.png
Oops, something went wrong.
Binary file added
BIN
+134 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/before/calculator/interns.png
Oops, something went wrong.
Binary file added
BIN
+213 KB
...log/2023/10/github-copilot-assets/slides/before/calculator/not-equally-good.png
Oops, something went wrong.
Binary file added
BIN
+210 KB
...-docs/blog/2023/10/github-copilot-assets/slides/before/calculator/pros-cons.png
Oops, something went wrong.
Binary file added
BIN
+77.3 KB
.../blog/2023/10/github-copilot-assets/slides/before/faster-software/10-20-pct.png
Oops, something went wrong.
Binary file added
BIN
+79 KB
...og/2023/10/github-copilot-assets/slides/before/faster-software/30-line-test.png
Oops, something went wrong.
Binary file added
BIN
+358 KB
...og/2023/10/github-copilot-assets/slides/before/faster-software/boring-stuff.png
Oops, something went wrong.
Binary file added
BIN
+183 KB
...023/10/github-copilot-assets/slides/before/faster-software/hours-to-minutes.png
Oops, something went wrong.
Binary file added
BIN
+306 KB
...cs/blog/2023/10/github-copilot-assets/slides/before/faster-software/mundane.png
Oops, something went wrong.
Binary file added
BIN
+238 KB
...og/2023/10/github-copilot-assets/slides/before/faster-software/near-perfect.png
Oops, something went wrong.
Binary file added
BIN
+133 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/faster-software/tedium.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...g/2023/10/github-copilot-assets/slides/before/faster-software/twice-as-fast.png
Oops, something went wrong.
Binary file added
BIN
+124 KB
...s/blog/2023/10/github-copilot-assets/slides/before/faster-software/worth-it.png
Oops, something went wrong.
Binary file added
BIN
+110 KB
...3/10/github-copilot-assets/slides/before/more-problems/caused-more-problems.png
Oops, something went wrong.
Binary file added
BIN
+205 KB
...-docs/blog/2023/10/github-copilot-assets/slides/before/more-problems/hassle.png
Oops, something went wrong.
Binary file added
BIN
+185 KB
...s/blog/2023/10/github-copilot-assets/slides/before/more-problems/interferes.png
Oops, something went wrong.
Binary file added
BIN
+117 KB
...s/blog/2023/10/github-copilot-assets/slides/before/more-problems/junior-dev.png
Oops, something went wrong.
Binary file added
BIN
+104 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/more-problems/screwed.png
Oops, something went wrong.
Binary file added
BIN
+332 KB
.../blog/2023/10/github-copilot-assets/slides/before/more-problems/subtle-bugs.png
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
generator/konfig-docs/blog/2023/10/github-copilot-assets/slides/generate-carousel.py
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,59 @@ | ||
import os | ||
import pyperclip | ||
from urllib.parse import urlparse | ||
|
||
def get_comment(file_path): | ||
"""Fetches the comment of a file on MacOS using AppleScript.""" | ||
script = f''' | ||
tell application "Finder" | ||
set theItem to (POSIX file "{file_path}") as alias | ||
get comment of theItem | ||
end tell | ||
''' | ||
return os.popen(f"osascript -e '{script}'").read().strip() | ||
|
||
def extract_source_website(url): | ||
"""Extracts the source website from a given URL.""" | ||
netloc = urlparse(url).netloc | ||
if "youtube" in netloc: | ||
return "YouTube" | ||
elif "news.ycombinator" in netloc: | ||
return "Hacker News" | ||
elif "twitter" in netloc: | ||
return "Twitter" | ||
elif "reddit" in netloc: | ||
return "Reddit" | ||
else: | ||
# Return the domain name as default if no other conditions match | ||
return netloc | ||
|
||
def generate_string(folder_path): | ||
output_str = "<Carousel.Wrapper>" | ||
for file_name in os.listdir(folder_path): | ||
if file_name.endswith('.png'): | ||
file_path = os.path.join(folder_path, file_name) | ||
|
||
comment = get_comment(file_path) | ||
source_website = extract_source_website(comment) | ||
|
||
file_name_without_ext = os.path.splitext(file_name)[0] | ||
folder_name = os.path.basename(os.path.normpath(folder_path)) # This gives 'bad-result' for './before/bad-result' | ||
|
||
slide = f""" | ||
<Carousel.Slide> | ||
<Figure caption={{<a href="{comment}">{source_website}</a>}}> | ||
![{file_name_without_ext}](./github-copilot-assets/slides/after/{folder_name}/{file_name}) | ||
</Figure> | ||
</Carousel.Slide>""" | ||
output_str += slide | ||
|
||
output_str += "\n</Carousel.Wrapper>" | ||
return output_str | ||
|
||
folder_path = input("Enter the path of the folder containing the images (e.g. ./before/bad-result): ") | ||
output = generate_string(folder_path) | ||
print(output) | ||
|
||
# Copy the output to the clipboard | ||
pyperclip.copy(output) | ||
print("The generated string has been copied to the clipboard!") |
12 changes: 11 additions & 1 deletion
12
generator/konfig-docs/blog/2023/10/github-copilot-assets/slides/poetry.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Binary file added
BIN
+624 KB
generator/konfig-docs/blog/2023/10/github-copilot-assets/whiteboard.png
Oops, something went wrong.