Sort by

recency

|

1553 Discussions

|

  • + 0 comments
    string dayOfProgrammer(int year)
    {
        int totalDays = 215;
        bool leapYear = false;
        if(year < 1918)
        {
            //Julian calendar
            if(year%4 == 0)
            {
                leapYear = true;
            }
        }
        else if(year > 1918)
        {
            //Gregorian calendar
            if(year%400 == 0 || (year%4 == 0 && year%100 != 0))
            {
                leapYear = true;
            }
        }
        else
        {
            //Julian-Gregorian transition calendar
            totalDays += 15;
        }
        if(leapYear)
        {
            totalDays += 29;
        }
        else if(year != 1918)
        {
            totalDays += 28;
        }
        string sepDate = to_string(256 - totalDays);
        sepDate += ".09.";
        return (sepDate += to_string(year));
    }
    
  • + 0 comments

    Day of the Programmer reminds us that attention to detail and skill matter in every field—whether it’s coding complex software or securing your home and business. Trust Locksmith Selby for comprehensive security solutions that protect what matters most every day. https cricbet99 green

  • + 1 comment

    Locks play a crucial role in safeguarding homes, offices, and valuables, offering peace of mind through reliable security. From traditional mechanical locks to advanced digital systems, they are designed to meet different security needs. Professional locksmiths ensure installation, repair, and maintenance are done efficiently. Day of the Programmer reminds us how technology shapes every aspect of life, including smart locks that integrate innovation with safety, making modern security smarter and more accessible.

  • + 0 comments
    # Day of the Programmer 📅
    from datetime import *
    def day_of_programmer(year):
        # Transition year
        if year == 1918: return "26.09.1918"
        # Julian calendar
        if year < 1918:
            return ("12.09." + str(year) if year % 4 == 0 
                    else "13.09." + str(year))
        # Gregorian calendar
        d = date(year, 1, 1) + timedelta(days=255)
        return d.strftime("%d.%m.%Y")
    
  • + 0 comments

    Lock picking course offers practical knowledge for enthusiasts and professionals to understand how different locks function and how to unlock them safely. With step-by-step training, participants learn techniques that enhance security awareness and professional locksmith skills. This valuable skillset also helps identify vulnerabilities in locks, making properties safer. Day of the Programmer reminds us how specialized skills, like coding or lock picking, can solve complex problems and open new opportunities for growth.