ccal: Calendar with local holidays via ip location

2023-12-24 Thread inv2004
@galaxyDragon Are there any problems with automation detection by IP? I think that the list of countries can be found here:

ccal: Calendar with local holidays via ip location

2023-12-24 Thread galaxyDragon
How can we know a correct 'country code' ?

Advent of Nim 2023

2023-12-24 Thread Col
Very late to the AoC party. My attempts if anyone is interested: I didn't know about AoC so hopefully next year I can get into it properly.

ccal: Calendar with local holidays via ip location

2023-12-24 Thread termer
> What is the `ical`? is it macos calendar? It sounds like it, but it's actually a calendar spec designed by the IETF. It's supported by all major calendar applications.

ccal: Calendar with local holidays via ip location

2023-12-24 Thread inv2004
I wanted to add file with days you want to highlight for your own reasons, but maybe it should not be a file, but external link, if it is link it could be private or public => a lot of question :) What is the `ical`? is it macos calendar?

ccal: Calendar with local holidays via ip location

2023-12-24 Thread termer
I like this concept. If you wanna make it more useful, you could add ical support

Sitemap Parser

2023-12-24 Thread termer
I'd suggest using dot syntax whenever you want something to look like it would in OOP, or if it's a property. For example: var player = getPlayer("Robert") player.kill() # kill(player) # ^ This wouldn't be as idiomatic since this is an action on the player, and

Nim need restrictions for values in type system

2023-12-24 Thread ElegantBeef
It's less than ideal, but thanks to `converter` and distinct a subset of refinement types are possible with present Nim. import std/[macros, genasts] type RefinementError* = object of CatchableError macro refineType(name: untyped, base: typedesc, expressions: varar

Nim v2: what would you change?

2023-12-24 Thread termer
> That is hindered by The Thing Which Cannot Be Mentioned. I honest to god have > never had an issue with style insensitivity in my life, regardless of whether > I'm doing C interop, JSON (de)serialization, or anything else for that > matter. Have you ever actually had issues with this in real p

Ptr byte to cstring?

2023-12-24 Thread ThomasTJdev
Great answer @PMunch. Thanks!

`nph` opinonated formatter v0.2

2023-12-24 Thread ASVI
Is planned something like in nph ?

Ptr byte to cstring?

2023-12-24 Thread PMunch
To understand what's going on we need to have a look at how all these types look in memory, and how they work in C. Your initial buffer type is a `ptr byte`, that is simply a pointer to a single 8-bit entity in memory. When you go to `AquireMemory` you pass a pointer to such a pointer. This is d

Nim need restrictions for values in type system

2023-12-24 Thread ASVI
Why ? Because I'm tired of writing assertions everywhere. type AtomicNode= refinement x: Node x.kind in AtomicNodes proc getParent(node: not AtomicNode): Node = impl Run If it can't prove at CT that node is not AtomicNode, then it tries it i

`nph` opinonated formatter v0.2

2023-12-24 Thread SpotlightKid
> then people working on a given codebase will argue about what configuration > to use, which is counterproductive. I disagree. Tooling decisions and coding guidelines are an important step in setting up any project or development shop and, like I said, not every project has the same requiremen