Skip to content

Commit

Permalink
Fix slugify to handle slashes within a word.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Aug 10, 2024
1 parent cc53bb4 commit 58de5e7
Show file tree
Hide file tree
Showing 13 changed files with 83 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/video-poster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '0 13 * * 6'

jobs:
message:
generate:
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 2 additions & 1 deletion bin/make_youtube_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def generate_article(video):

def slugify(title):
parts = title.split(" ")
parts = [part for part in parts if part != "-" and part != "/"]
# Replace any slashes *within* a word (e.g., `ci/cd`)
parts = [part.replace("/", "-") for part in parts if part != "-" and part != "/"]
title = "-".join(parts)
title = title.replace("#", "")
return title.lower()
5 changes: 5 additions & 0 deletions bin/processed_videos.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
"18-WoWE2zUA",
"1BfOz32fUo4",
"1YaDK6H2C8w",
"1pK-pH2HqOw",
"1ve6TduchHQ",
"23R73Dd0C9E",
Expand Down Expand Up @@ -28,6 +29,7 @@
"EX-Li0Ve-iY",
"Enb2wovxHkg",
"EzWGHpwvfP0",
"FIvD-SQyXYE",
"GD--Xy54icI",
"GQ8MDUnGBvg",
"H7-Cz1kJhOc",
Expand All @@ -43,6 +45,7 @@
"SOtB_CfQ4Y4",
"Stb5OrSkJZc",
"TcI72JDgx9Q",
"Tdjszje_-tA",
"UHcgJDnSZxk",
"UJFSD4GX3-Q",
"Ucx8BIetbUE",
Expand All @@ -57,6 +60,7 @@
"YzcJy3mUSJM",
"_Jzu9GQPkkk",
"_XeRM-4DZz0",
"a4FsronE5M4",
"bP8arDGJxBk",
"bbkPxxxCV6M",
"cH6U1Nf8G-I",
Expand All @@ -81,6 +85,7 @@
"rK02eXm3mfI",
"s4znyNjXi3k",
"snj_wC1mqcQ",
"tYIq430-qkU",
"tsRkRWnF4RA",
"uOS2_g8OQFw",
"uQvOun9H8Sw",
Expand Down
15 changes: 15 additions & 0 deletions content/blog/2024-08-07-an-opinionated-introduction-to-ci-cd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "An Opinionated Introduction to CI/CD"
description: "Continuous Integration / Continuous Delivery (or Deployment), CI/CD, is a set of practices used by engineering organizations to improve the quality of software they deliver, how fast they deliver that software, and detect issues with that software before they affect end users. Unfortunately, the term can mean a lot of different ideas and approaches. So, in this talk we’re going to try to unravel some of those ideas to give you some ideas on how you too can deliver software better. I’ll also give you some links to some tooling so you can see how it’s done."
image: img/2024/a4FsronE5M4.jpg
video: https://www.youtube.com/embed/a4FsronE5M4
type: post
categories:
- YouTube
- Python
- Django
tags: ['ci/cd', 'ci', 'cd', 'continuous integration', 'continuous delivery', 'continuous deployment', 'sdlc', 'artifacts']

---

Continuous Integration / Continuous Delivery (or Deployment), CI/CD, is a set of practices used by engineering organizations to improve the quality of software they deliver, how fast they deliver that software, and detect issues with that software before they affect end users. Unfortunately, the term can mean a lot of different ideas and approaches. So, in this talk we’re going to try to unravel some of those ideas to give you some ideas on how you too can deliver software better. I’ll also give you some links to some tooling so you can see how it’s done.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Go Standard Library App - Building SaaS #197.2"
description: "In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. This is a continuation after an internet disconnection."
image: img/2024/1YaDK6H2C8w.jpg
video: https://www.youtube.com/embed/1YaDK6H2C8w
type: post
categories:
- YouTube
- Python
- Django
tags: ['Go', 'standard', 'std', 'standard library']

---

In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. This is a continuation after an internet disconnection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Go Standard Library App - Building SaaS #197.3"
description: "In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. This is another continuation after an internet disconnection."
image: img/2024/tYIq430-qkU.jpg
video: https://www.youtube.com/embed/tYIq430-qkU
type: post
categories:
- YouTube
- Python
- Django
tags: ['Go', 'standard', 'std', 'standard library']

---

In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. This is another continuation after an internet disconnection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Go Standard Library App - Building SaaS #197.4"
description: "In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. This is the final continuation after an internet disconnection."
image: img/2024/FIvD-SQyXYE.jpg
video: https://www.youtube.com/embed/FIvD-SQyXYE
type: post
categories:
- YouTube
- Python
- Django
tags: ['Go', 'standard', 'std', 'standard library']

---

In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. This is the final continuation after an internet disconnection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Go Standard Library App - Building SaaS #197"
description: "In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library."
image: img/2024/Tdjszje_-tA.jpg
video: https://www.youtube.com/embed/Tdjszje_-tA
type: post
categories:
- YouTube
- Python
- Django
tags: ['SaaS', 'Go', 'standard', 'std', 'standard library']

---

In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library.
Binary file added static/img/2024/1YaDK6H2C8w.jpg
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 static/img/2024/FIvD-SQyXYE.jpg
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 static/img/2024/Tdjszje_-tA.jpg
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 static/img/2024/a4FsronE5M4.jpg
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 static/img/2024/tYIq430-qkU.jpg
Loading
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 58de5e7

Please sign in to comment.