Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/25/2023 in all areas

  1. Yes, the slash may be escaped in JSON. Unlike the backslash, however, this is not mandatory. That means "/" would be as valid in JSON as "\/" and would have the same result. I decided not to escape the slash, because I save one character and the readability is better. That was obvious, of course. My answer was also not really meant seriously. If it didn't come across that way, it's probably because of my English deficits or because of my nationality, which has a reputation - well, as they say here: having a stick up your ass. 🙃
    1 point
  2. 1 point
  3. Bluesmaster

    AutoIt Snippets

    just a small one-liner contribution that came along today. Calculates the weekday based on another weekday and the diffrence in days between them: (I know you can do it by combining udfs but hey.. if you get very very bored you can reverse engineer the math ) Mod( Mod( @WDAY + 7 + Mod( $diff , 7 ) , 7 ) + 6 , 7 ) + 1 best regards Bluesmaster *Update: there is a much shorter way to do this (thanks to jchd) $sourceDay = @WDAY $diff = 22 ; = 22 days in the future ConsoleWrite( Mod($sourceDay + Mod($diff, 7) + 6, 7) + 1 & @LF)
    1 point
×
×
  • Create New...