Skip to content

Instantly share code, notes, and snippets.

View a2937's full-sized avatar

Anna a2937

  • 04:28 (UTC -04:00)
View GitHub Profile
@a2937
a2937 / calendar.py
Created December 25, 2021 00:15
LearnToCode Calendar tests
class Calendar:
def __init__(self, day=1, month=8, year=2021):
self.is_daytime = True
self.day = day
self.month = month
self.year = year
self.month_names = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July',
'August', 'September', 'October', 'November', 'December']
self.days_count = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
@a2937
a2937 / ShipControl.cs
Created October 30, 2022 18:43
Ship Control From Unity 2D Space Shooter Network Sample
using Unity.Collections;
using Unity.Netcode;
using UnityEngine;
using UnityEngine.Assertions;
#if ENABLE_INPUT_SYSTEM
using UnityEngine.InputSystem;
#endif
public class Buff
{