As projects grow patterns that worked early on break and we need to change things to make the project easier to work with, and more welcoming to new developers. git Before you start mucking up a project with wild commands at the terminal check that you have a super clean git status. We may make some mistakes and need a way to undo 100’s files and git makes it really easy if you start with a clean history. Terminal bash If we are ready to begin work we should see a response like this. Terminal bash It would also be wise to do this inside of a branch. The minute you try to do something wild in your working branch someone will walk by and ask you to do a five-minute task, but your deep in refactoring and haven’t left yourself a clean way back. Terminal bash grepr Time for the meat of this refactor replacing text across our project. I often will pop this bash function into my terminal session and tweak it as needed. This function is called for then. It will recursively search for a given p…
I use my ipython terminal daily. It’s my go to way of running python most of the time. After you use it for a little bit you will probably want to setup a bit of your own configuration. install ipython Activate your virtual environment of choice and pip install it. Any time you are running your project in a virtual environment, you will need to install ipython inside it to access those packages from ipython. Terminal bash You are using a virtual environment right? Virtual environments like venv or conda can save you a ton of pain down the road. profile_default When you install ipython you start out with no config at all. Runnign will start a new profile called that contains all of the default configuration. This command will create a directory multiple configurations You can run multiple configurations by naming them with This command will create a directory startup Inside the profile there will be a startup directory. Ipython will execute each of the files in this directory on startup…
I’ve grown tired of the standard ipython prompt as it doesn’t do much to give me any useful information. The default one gives out a line number that only seems to add anxiety as I am working on a simple problem and see that number grow to several hundred. I start to question my ability 🤦♂️. Configuration If you already have an ipython config you can move on otherwise check out this post on creating an ipython config. Ipython-Config The Dream Prompt I want something similar to the starship prompt I am using in the shell. I want to be able to quickly see my python version, environment name, and git branch. python version active environment git branch Basic Prompt This is mostly boilerplate that I found from various google searches, but this gets me a basic green chevron as my prompt. python The rest of this post will build off of this boilerplate and add to the method of MyPrompt Colors I mostly set the colors of my prompt throughout this post by guessing and trying different attribute…
I’m impressed by vim-tmux-runner from christoomey. Vim and tmux, sittin’ in a tree…
I like fkromer’s project awesome-kedro. No description available.
Just starred machfiles by ChristianChiarulli. It’s an exciting project with a lot to offer. The dotfiles you see in all my videos
Check out LunarVim and their project LunarVim. 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
Looking for inspiration? joelhooks-com by joelhooks. playing with static pages
One thing we all dread is mundane work of getting started, and all the hoops it takes to get going. This year I want to post more often and I am taking some steps towards making it easier for myself to just get started. When I start a new post I need to cd into my blog directory, start neovim in a markdown file with a clever name, copy some frontmatter boilerplate, update the post date, add tags, a description, and a cover. Todo List for starting a post frontmatter template Title slug tags date cover description create markdown file open in neovim Lets Automate this This aint no proper cli hot and fast As with many thing running behind the scenes on this site, I am the one and only user, I have limited time, so this is going to be a bit hot and fast. Let’s create a file called new-post. start the script new-post python 👆 Works on my machine If this were something that had more users than me I would probably use something like click, but for this I want to get it done quick and avoid an…
In python data science we often will reach for pandas a bit more than necessary. While pandas can save us so much there are times where there are alternatives that are much simpler. The itertools more-itertools` are full of cases of this. This post is a walkthrough of me solving a problem with rather than reaching for a for loop, or pandas. I am working on a one-line-link expander for my blog. I ended up doing it, just by modifying the markdown with python. I first split the post into lines with, then look to see if the line appears to be just a link. One more safety net that I wanted to add was to check if there was whitespace around the line, this could not simply be done in a list comprehension by itself. I need just a bit of knowledge of the surrounding lines, enter. simplified rendering function I have a function that will check to see if the line should be expanded, then render the correct template. Fist step is to check if the line contains no spaces and starts with, if it does…
WaylonWalker has done a fantastic job with devtainer. Highly recommend taking a look. 🐳 (dotfiles) My personal development docker container base image
WaylonWalker has done a fantastic job with WaylonWalker. Highly recommend taking a look. Learning in public
Check out aoc by ThePrimeagen. It’s a well-crafted project with great potential. 2020
Check out ZaxR and their project bulwark. Bulwark is a package for convenient property-based testing of pandas dataframes.
mariokostelac has done a fantastic job with sagemaker-setup. Highly recommend taking a look. Useful scripts for making AWS SageMaker better
I like pypeaday’s project aoc-2020. Advent of Code 2020
I’m really excited about auto-editor, an amazing project by WyattBlue. It’s worth exploring! Auto-Editor: Efficient media analysis and rendering
This is episode 1 of the Waylon Walker Audio experience, posts from waylonwalker.com {.hoverlink} in audio form. So I have had this idea for awhile to add audio to my blog posts. The idea partly comes from the aws blog, if you have ever been on their blog you will have noticed that they have a voiced by amazon polly section. What to Expect Honestly I don’t know this is all new to me and I dont have much to go off of. For now its a test that may or may not work out. I will say that the time that I have available for clean audio is a bit limited so expect these to come out in batches as I get time to go back and record. What Not to Expect One thing that makes the aws blog really hard to listen to is the robotic voice, I definitely don’t want that. This will be voiced by a real human, Me. At the same time written text doesn’t translate directly to audio well so don’t necessarily expect the audio to be word for word. Code blocks There are a lot of code blocks in my blog, which don’t transl…
Check out yetudada and their project yetudada. No description available.
I’m impressed by quickpython from timothycrosley. A retro interactive coding environment powered by Python and nostalgia
Calendar data could not load. Try again.