Python for Beginners: Numeric Types
Python, like most programming languages, has built-in numeric data types. Integers and floats are the two common numeric types in Python. Python supports other types of numbers such as Decimal, Fraction, and complex numbers. But in this mini-tutorial, we’ll focus on learning about integers and floats.
Number values help us represent all kinds of information. Numbers can be data from a visualization, the score in a video game, web application data, and so on.
How To Generate Ideas For Writing
You can’t write essays or articles without generating ideas first. The is no shortcut around this fact. That’s why Dickie Bush and Nicolas Cole created the Endless Idea Generator. It’s a framework designed to help you generate an endless stream of ideas. Dickie and Nicolas explain the framework in greater detail in their Ship 30 for 30 course.
In this post, I wanted to give an overview of the framework for anyone struggling to generate ideas.
You Should Be Using Hugo Archetypes
I hate repetitve tasks. They make me bored and vulernable to human error. If I can find a solution to automate repetitive tasks, I will.
If you stop being boring and repetitive, that will be the end of it - I will not look for you, I will not pursue you… but if you don’t, I will look for you, I will find you… and I will automate you. – Liam Neeson, probably
Add Google Analytics to Your Hugo Site
This tutorial is for setting up Google analytics v4 on your Hugo site. Previous versions of Google Analytics used Tracking ID rather than Measurement ID.
Prerequisites Before we get started, go to https://analytics.google.com/ and create an account (or use your Google account).
Sign-in to your account before proceeding.
Step 1. Generate the Measurement ID Click on “Start measuring” to get started.
Fill out the Account, Property, and About your business forms.
How to Write a Binary Heap in Golang
The heap data structure is commonly used to implement a priority queue. The are many heap variants, but in this blog post we’ll focus on the binary heap. Our implemention will specifically be a min heap, and it’ll only work for integer values.
Side note: we’ll be able to adapt this to work for any value when Golang officially releases generics!
Definitions Binary Heap
A complete binary tree that adheres to the heap property.