• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

The Coding Couple

Pair programming is a lifetime commitment.

  • Home
  • Categories
    • Arduino
    • JavaScript
    • Python
    • Raspberry Pi
  • About Us
    • Privacy Policy
  • Contact

Python

Fractions in Python | Today I Learned

December 12, 2019 by Ashley

Today I became aware of the existence of the builtin Python module fractions. The fractions module handles rational number arithmetic. Here's a simple example using the Fraction class to covert a decimal into a Fraction with the numerator and denominator reduced to the lowest terms. My ...

Read More »

Filed Under: Programming Languages, Python, Today I Learned Tagged With: fractions, math, python, today I learned

Counting Pixels by Color in Python with Pillow (a PIL fork)

October 7, 2019 by Ashley

Pixel Color Count legend

I'm a maker and love creating 8-bit art, mostly with wood. I have a new project in the works where I need an exact count of each pixel per a color. I started to manually count them before I stopped myself and thought, why don't I just write a script to automate this!? ...

Read More »

Filed Under: Programming Languages, Python

Tinkering Around with Adafruit’s PyBadge LC

June 19, 2019 by Ashley

I recently purchased an Adafruit PyBadge LC. and I've had a lot fun tinkering around with it. There are three boards in this family of boards from Adafruit: PyBadge LC (the one I have)PyBadgePyGamer The PyBadge LC is the cheapest of the bunch, hence the LC for low cost. For more details on the ...

Read More »

Filed Under: Arduino, Python

I made a Sphere-O-Bot (An EggBot Mod)

April 3, 2019 by Ashley

Sphere-O-Bot | EggBot drawing egg robot

As Easter approaches, I thought building a Sphere-O-Bot (EggBot) would be a fun a STEM related project for the season. I 3D printed the parts for the Sphere-O-Bot, a variant of the original EggBot by Evil Mad Science, and purchased the hardware kit from JJ Robots. Printing and assembling the ...

Read More »

Filed Under: Arduino, Debugging, Python

Avoid using mutable values as default parameter values in Python (Today I Learned)

April 28, 2017 by Ashley

why

Today I learned something interesting about the way Python functions behave with default parameter values: avoid using mutable objects such as lists as default values for function parameters. What's the problem? Default parameter values are evaluated when function is evaluated.  Which means ...

Read More »

Filed Under: Python, Today I Learned Tagged With: default value, functions, optional parameters, python, TIL, today I learned

How to watermark images with Python and Pillow (PIL)

July 9, 2016 by Ashley

I am a DIY blogger, and the most tedious part of the job is editing the images. I am constantly repeating the following steps: Resize the imageAdd a text watermarkCompress the image I wanted to automate the process. There are good solutions out there for automating image manipulation, but it ...

Read More »

Filed Under: Python Tagged With: automation, image manipulation, pil, pillow, python, python imaging library, script, tinify, tinypng, watermark

Primary Sidebar

Social Media

  • GitHub
  • Instagram
  • Twitter
  • YouTube

Recent Posts

  • Pokémon Color Picker | A web app built with HTML/CSS + JavaScript
  • Pokéball Single DIV CSS Drawing | Tutorial
  • Error: [🍍]: “getActivePinia()” was called but there was no active Pinia
  • Trijam #261 Game Jam Diary: One Wrong Move
  • Using WSL on Corporate VPN

Recent Comments

  • Lizzy on Creation Crate Month 2: An Arduino Powered Memory Game
  • Ashley Grenon on Creation Crate Month 2: An Arduino Powered Memory Game
  • Lizzy on Creation Crate Month 2: An Arduino Powered Memory Game
  • kelly on Creation Crate Month 2: An Arduino Powered Memory Game
  • Ashley on Creation Crate Month 3: An Arduino Powered Distance Detector

Follow us on Instagram!

This error message is only visible to WordPress admins

Error: No feed found.

Please go to the Instagram Feed settings page to create a feed.

Categories

  • Arduino
  • Conferences
  • Debugging
  • Game Jams
  • HTML and CSS
  • JavaScript
  • Programming Languages
  • Python
  • Raspberry Pi
  • Today I Learned

Archives

  • May 2024
  • April 2024
  • March 2024
  • May 2022
  • December 2021
  • May 2021
  • March 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • June 2019
  • April 2019
  • September 2017
  • April 2017
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • April 2015
  • January 2015

Tags

adafruit arduino brackets c# code smell codestock coding standards conventions creation crate debugging developer devspace electronics es6 es2015 game development game jam gotcha hackathon hoisting html html5 javascript led naming conventions nintendo phaser pluralsight pokemon programmer python raspberry pi retro retropie scope self improvement single div single div drawing subscription box TIL today I learned troubleshooting vue vuejs windbg

Footer

About Us

We are the Coding Couple.  Two people who met in college and decided they wanted to pair program for the rest of their ...

Read More »

Most Recent Posts

Pokémon Color Picker | A web app built with HTML/CSS + JavaScript

Pokéball Single DIV CSS Drawing | Tutorial

Error: [🍍]: “getActivePinia()” was called but there was no active Pinia

Trijam #261 Game Jam Diary: One Wrong Move

Social Media

  • GitHub
  • Instagram
  • Twitter
  • YouTube

Copyright Notice

© The Coding Couple, 2015 – 2023. Excerpts and links may be used, provided that full and clear credit is given to The Coding Couple with appropriate and specific direction to the original content.

Copyright © 2025 · Foodie Pro Theme by Shay Bocks · Built on the Genesis Framework · Powered by WordPress