Skip to content
View jamster321's full-sized avatar

Organizations

@unravelin
Block or Report

Block or report jamster321

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. advent-of-code-2020 advent-of-code-2020 Public

    My solutions for Advent of Code 2020

    Go

  2. pi-snake pi-snake Public

    Snake Game for the Raspberry Pi Zero with Scroll pHAT

    Python 1

  3. pi-bus-times pi-bus-times Public

    Displays the time until the bus on the ScrollPhat

    Python

  4. A function for adjusting dates by mo... A function for adjusting dates by months in Go, while maintaining the day of the month where possible. If the target month does not have enough days the last day of the month is used.
    1
    import "time"
    2
    
                  
    3
    func AddMonths(d time.Time, months int) time.Time {
    4
    	targetMonth := d.AddDate(0, months, 1-d.Day())
    5
    	daysInTargetMonth := targetMonth.AddDate(0, 1, -1).Day()