Skip to content

Instantly share code, notes, and snippets.

Avatar

JD joeld1

  • Southern California
View GitHub Profile
@joeld1
joeld1 / docx_hyperlink_snippets.py
Last active Nov 15, 2020
Collection of python-docx hyperlink snippets
View docx_hyperlink_snippets.py
@joeld1
joeld1 / requirements_to_poetry.md
Last active Oct 24, 2020
Notes on ways to import requirements.txt files into Poetry
View requirements_to_poetry.md

Original StackOverflow Post

  • Solution - 1

    • "poetry doesn't support this directly. But if you have a handmade list of required packages (at best without any version numbers), that only contain the main dependencies and not the dependencies of a dependency you could do this:"
      • cat requirements.txt|xargs poetry add
  • Solution - 2

    • Another Solution
      • for item in $(cat requirements.txt); do poetry add "${item}"; done
@joeld1
joeld1 / applayout.html
Created Oct 22, 2020
Pluralsight - Django Templates Course - Ticketing App Templates
View applayout.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ticketing App - {% block title %} {% endblock %}</title>
</head>
<body>
<nav>
<a href="/">Home</a>
<a href="/tickets">View Tickets</a>
You can’t perform that action at this time.