Gavin Wiggins

AboutNotesPhotos


This page is a collection of my notes on various programming topics. Subscribe to this page using the JSON Feed with your favorite RSS reader or follow me on Mastodon where I share links to new articles. Notes are organized into the following categories: C++, JavaScript, Julia, Python, and Swift.

C++

Code examples are available on GitHub in the cpp-programs repository.

Array with two-dimensions in C++ August 13, 2023

Include function in C++ July 25, 2023

Resources December 13, 2022

Strings in C++ December 13, 2022

Clang on macOS December 13, 2022

Hello world in C++ December 13, 2022

Numbers in C++ December 13, 2022

Command line arguments with C++ December 13, 2022

CMake build and install December 13, 2022

JavaScript

Code examples are available in the javascripts GitHub repository.

Node for JavaScript April 28, 2023

Load content from HTML files with JavaScript March 26, 2023

Scroll columns with JavaScript March 24, 2023

Select results with JavaScript March 23, 2023

Strings in JavaScript March 19, 2023

Plotly graph with JavaScript March 19, 2023

Input number with JavaScript March 18, 2023

Fizz buzz in JavaScript March 18, 2023

Select units with JavaScript March 17, 2023

Modules in JavaScript February 27, 2023

Julia

Code examples are available in the computing-julia repository on GitHub.

Testing in Julia June 26, 2021

Docstrings in Julia June 24, 2021

Debugging in Julia June 22, 2021

Getting started with Julia June 20, 2021

Arrays in Julia June 20, 2021

Conditional statements in Julia June 13, 2021

Modules in Julia June 8, 2021

JSON parsing with Julia June 8, 2021

Functions in Julia May 27, 2021

Loops in Julia May 25, 2021

Tuples in Julia May 23, 2021

Dictionaries in Julia May 22, 2021

Strings in Julia May 22, 2021

Python

Code examples can be found in the pythonic repository on GitHub.

Python projects with uv January 7, 2025

Run Python scripts with uv January 6, 2025

Virtual environments with uv January 5, 2025

Python package with data November 24, 2024

Configuration using a Python dataclass November 21, 2024

Command-line arguments with Python September 28, 2024

Protocols in Python July 13, 2024

Makefiles for Python projects March 14, 2024

Dedent text with Python February 29, 2024

Virtual environments February 16, 2024

Cached class property in Python January 13, 2024

Cache function in Python January 13, 2024

Version number in Python November 30, 2023

Sublime Text for Python projects November 25, 2023

Doctest with Python November 17, 2023

Debugger in Python July 18, 2023

Conda environments June 15, 2023

Python package name June 11, 2023

Count letters with Python April 15, 2023

Sorted list of items with Python February 4, 2023

Dictionaries in Python November 15, 2022

Strings in Python November 11, 2022

Secrets in Python November 8, 2022

Counter in Python November 8, 2022

Unittest CSV files with Python November 8, 2022

JSON with Python November 8, 2022

Pre-allocate a Python list November 8, 2022

Tuples in Python November 8, 2022

cProfile for Python code November 8, 2022

Lists in Python November 8, 2022

Test examples with Python November 8, 2022

Parsing XML with Python November 8, 2022

Fizz buzz in Python May 14, 2020

Dask and Ray

Dask arrays November 8, 2022

Run Dask code as a script November 8, 2022

Ray actors November 8, 2022

Ray functions November 8, 2022

Flask

Form input with Htmx and Flask February 4, 2023

Plotly graph restyle with Flask February 4, 2023

Update page with Ajax and Flask February 4, 2023

Bokeh graph with Htmx and Flask February 4, 2023

Plotly graph with Flask February 4, 2023

Plotly graph with Htmx and Flask February 4, 2023

Bokeh graph with Flask February 4, 2023

Form input with Flask February 4, 2023

Matplotlib

Imshow plot with Matplotlib May 10, 2023

Matshow plot with Matplotlib May 10, 2023

Bar plot with Matplotlib February 9, 2023

Line plot with Matplotlib February 4, 2023

Animation with Matplotlib February 4, 2023

Contour plot smoothing with Matplotlib February 4, 2023

Mosaic grid of plots with Matplotlib February 4, 2023

NumPy and SciPy

Gauss-Legendre points and weights with NumPy August 31, 2023

Index of max value with NumPy February 6, 2023

Memory usage of large NumPy array February 4, 2023

Sparse diagonal matrix with SciPy November 8, 2022

Clip array values with NumPy November 7, 2022

Boolean indexing with NumPy November 7, 2022

Full array in NumPy November 7, 2022

Maximum array with NumPy November 7, 2022

Set difference of two NumPy arrays November 7, 2022

Loop over columns with NumPy November 7, 2022

Compare inv and solve functions in NumPy November 7, 2022

Save and load NumPy arrays November 7, 2022

Tkinter

Update label text in Tkinter February 4, 2023

Theme ttkbootstrap February 4, 2023

Theme customtkinter February 4, 2023

Open JSON file in Tkinter February 4, 2023

View data with Matplotlib in Tkinter February 4, 2023

Basic Tkinter application February 4, 2023

Swift

Code examples are available on GitHub in the swift-macos repository.

Discardable result in Swift October 7, 2024

Flat indexing an N-dimensional array in Swift August 7, 2024

Elapsed time for Swift code June 24, 2024

Package a Swift library March 15, 2024

Swift compiler optimizations February 24, 2024

Create a Swift package February 18, 2024

Image from colormap filter in Swift July 19, 2023

Image from array data in Swift July 18, 2023

Normalize array values in Swift July 17, 2023

Arrays in Swift July 14, 2023

Directory contents with Swift April 18, 2023

Element-wise array addition in Swift January 16, 2023

Dictionaries in Swift November 12, 2022

Strides in Swift November 12, 2022

Strings in Swift November 12, 2022

Date formatting in Swift November 12, 2022

Range in Swift November 12, 2022

Defaults command line tool November 10, 2022

Read Eval Print Loop (REPL) for Swift code November 10, 2022

SwiftUI

Display scale with SwiftUI August 28, 2023

Image from colormap filter in SwiftUI July 22, 2023

Heat map chart in SwiftUI July 8, 2023

Async for-in loop in SwiftUI June 13, 2023

Line chart in SwiftUI March 28, 2023

Window default size with SwiftUI February 22, 2023

Window resizability in SwiftUI February 21, 2023

Blur effect with SwiftUI February 4, 2023

Sine wave in SwiftUI view February 4, 2023

Grid lines in SwiftUI view February 4, 2023

Two column NavigationSplitView November 30, 2022

Text in SwiftUI November 13, 2022

Labels with SwiftUI November 13, 2022

Pasteboard in a SwiftUI app November 13, 2022

SwiftUI tap gesture November 13, 2022

Sidebar toggle in SwiftUI November 13, 2022

Window and toolbar style in SwiftUI November 13, 2022

Toggle animation in SwiftUI November 13, 2022

App storage in SwiftUI November 13, 2022

Scroll view in SwiftUI November 13, 2022

Button styles in SwiftUI November 13, 2022

Credits in SwiftUI app November 13, 2022

Path markers in SwiftUI November 13, 2022

WebView in SwiftUI November 13, 2022

Text field in SwiftUI November 13, 2022

Table view in SwiftUI November 13, 2022

ViewBuilder in SwiftUI November 13, 2022

Three column NavigationView November 13, 2022

Progress view in SwiftUI November 13, 2022

Toolbar dropdown in SwiftUI November 13, 2022

Picker control in SwiftUI November 13, 2022

Images and symbols in SwiftUI app November 13, 2022

Stepper in SwiftUI November 13, 2022

Sidebar disclosure group in SwiftUI November 13, 2022

Preferences window in SwiftUI November 13, 2022

Labeled content with SwiftUI November 13, 2022

Open a window in SwiftUI November 13, 2022

Menu items in a SwiftUI app November 13, 2022

Two column NavigationView November 13, 2022

Cursors in a SwiftUI app November 13, 2022

Accelerate

Complex multiplication with Accelerate May 11, 2024

Matrix multiplication with Accelerate May 4, 2024

Absolute value with Accelerate November 11, 2022

Sort array values with Accelerate November 11, 2022

Reverse array elements with Accelerate November 11, 2022

Metal

Matrix multiplication with Metal May 3, 2024

Metal sampler October 10, 2023

Noise with Metal September 29, 2023

Triangle with Metal September 19, 2023

Clear color with Metal September 10, 2023

Color view with Metal compute kernel September 8, 2023

Particles with Metal August 29, 2023

Gavin Wiggins © 2025.
Made on a Mac with Genja. Hosted on GitHub Pages.