Skip to content
Circuit face

Clint Vidler

Website Developer & Software Engineering Student

  • About Me
  • CMS
    • Drupal
    • SharePoint
    • WordPress
  • Data
    • API
    • MongoDB
    • NAS
      • Synology
  • JavaScript
    • Angular
    • Gatsby.js
    • Node.js
      • Express.js
    • Pug.js
    • Vue.js
  • Microsoft
    • Outlook
    • SharePoint
    • Windows
  • More Topics
    • Apple
      • OSX
    • Go
    • Google
      • G Suite
    • PHP
    • Python
    • Security
      • Backup & Recovery
    • Website Design
    • Uncategorized
  • Contact
Scroll down to content

Posts

Posted on March 10, 2022March 10, 2022

Using Testify suite setup/teardown to run operations before/after groups of tests in Go

The standard testing library in go lacks setup and teardown features, Testify adds this feature (and many others).

Continue reading “Using Testify suite setup/teardown to run operations before/after groups of tests in Go”
Posted on January 31, 2022January 31, 2022

Enum type in Go

This ‘Season’ type can be used like any other type in go, but with limited allowed values.

Continue reading “Enum type in Go”
Posted on January 28, 2022January 27, 2022

Define a 404 fallback image in an Angular component

Try to load an image, but if it doesn’t exist instead load another image.

Continue reading “Define a 404 fallback image in an Angular component”
Posted on January 27, 2022January 27, 2022

How to create a responsive square image with CSS

Create a responsive square element containing an image using ::after pseudo class.

Continue reading “How to create a responsive square image with CSS”
Posted on January 18, 2022January 31, 2022

Populate Golang relationship field using MongoDB Aggregate and $lookup

Replace the relationship ID with the data object that it references.

Continue reading “Populate Golang relationship field using MongoDB Aggregate and $lookup”
Posted on January 12, 2022

Check if Golang interface is a slice

This function returns true if the given interface is a slice, otherwise it returns false.

Continue reading “Check if Golang interface is a slice”
Posted on November 7, 2021

Go module with local package folders

A basic go module called example with additional handlers and data packages, which doesn’t require Git.

Continue reading “Go module with local package folders”
Posted on August 15, 2021

NgModel not working on custom component in Angular

[(ngModel)] is not working on custom angular components

Continue reading “NgModel not working on custom component in Angular”
Posted on August 8, 2021August 8, 2021

Recursively rename ordered jpg files in nested folders with Python

Renames all files in leaf directories inside an arbitrarily nested folder structure, following a 4 digit format, e.g. 000x.jpg

Continue reading “Recursively rename ordered jpg files in nested folders with Python”
Posted on May 14, 2021May 14, 2021

Flexbox to add a spacer

Use Flexbox to push content.

// The span takes up any remaining space between left and right
<div>left</div>
<span style=“flex: 1 1 auto”></span>
<div>right</div>

Posts navigation

Page 1 Page 2 … Page 6 Next page

Recent Posts

  • Using Testify suite setup/teardown to run operations before/after groups of tests in Go March 10, 2022
  • Enum type in Go January 31, 2022
  • Define a 404 fallback image in an Angular component January 28, 2022
  • How to create a responsive square image with CSS January 27, 2022
  • Populate Golang relationship field using MongoDB Aggregate and $lookup January 18, 2022

Archives

  • March 2022 (1)
  • January 2022 (5)
  • November 2021 (1)
  • August 2021 (2)
  • May 2021 (1)
  • November 2020 (1)
  • September 2020 (1)
  • August 2020 (3)
  • July 2020 (6)
  • June 2020 (1)
  • May 2020 (1)
  • March 2020 (1)
  • January 2020 (1)
  • August 2019 (1)
  • June 2019 (1)
  • May 2019 (4)
  • April 2019 (4)
  • March 2019 (3)
  • January 2019 (1)
  • December 2018 (3)
  • November 2018 (9)

Categories

  • Angular (4)
  • Apple (3)
    • OSX (3)
  • CMS (13)
    • Drupal (4)
    • Wordpress (7)
  • Data (3)
    • API (1)
    • MongoDB (2)
  • Go (5)
  • Google (2)
    • G Suite (1)
  • JavaScript (12)
    • Gatsby.js (3)
    • Node.js (4)
      • Express.js (2)
    • Pug.js (2)
    • Vue.js (2)
  • Microsoft (5)
    • Outlook (1)
    • SharePoint (2)
    • Windows (2)
  • NAS (3)
    • Synology (3)
  • PHP (1)
  • Python (1)
  • Security (6)
    • Backup & Recovery (2)
  • TypeScript (2)
  • Uncategorized (1)
  • Website Design (5)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • GitHub
  • Linkedin
Privacy Policy Log in