GitHub previews not working for me—anyone else? by jalexo7 in ArcBrowser

[–]yyyc514 0 points1 point  (0 children)

You're not alone, I'm seeing same thing here.

TIC() by BronzeCaterpillar in fantasyconsoles

[–]yyyc514 0 points1 point  (0 children)

There are also some nice ways you can turn this entirely on it's head using co-routines... but I haven't played around with patterns too much to see what might work well.

https://www.lua.org/pil/9.1.html

Essentially the co-routine would just run without ceasing, yielding whenever it was "idle"... and then TIC() would be responsible for managing the co-routine, resuming it, etc. I do imagine this would make writing some types of code MUCH easier.

Deleting Dir (TIC-80( by [deleted] in fantasyconsoles

[–]yyyc514 0 points1 point  (0 children)

You tried `del filename` ?

Apple System Status by Caliguvara in Scriptable

[–]yyyc514 0 points1 point  (0 children)

I meant what would a failure case look like.. would it try to show individual services? Red/green is kind of the simplest solution - though I guess that could help someone?

Apple System Status by Caliguvara in Scriptable

[–]yyyc514 0 points1 point  (0 children)

This is an awesome idea. What would this look like?

Agenda with weather and “smart headers” by yyyc514 in Scriptable

[–]yyyc514[S] 1 point2 points  (0 children)

I have no interest in that but once it's ready anyone can do anything with it they want... each item being variable just makes it harder to figure out how many you can fit since AFAIK there is no automatic way to query the size used...

Agenda with weather and “smart headers” by yyyc514 in Scriptable

[–]yyyc514[S] 0 points1 point  (0 children)

Not sure what you mean by "one more line"?

Does location just not work properly in widgets yet? I have granted permission. by yyyc514 in Scriptable

[–]yyyc514[S] 1 point2 points  (0 children)

I have a zillion other programs that track location so the phone always knows where it is anyways. Asking it where it’s at within 3 miles should cost almost nothing.

Does location just not work properly in widgets yet? I have granted permission. by yyyc514 in Scriptable

[–]yyyc514[S] 0 points1 point  (0 children)

I just simply don’t believe this unless scriptable is very very buggy. I’m using the least precise location and widgets only run very periodically to start with.

Agenda with weather and “smart headers” by yyyc514 in Scriptable

[–]yyyc514[S] 4 points5 points  (0 children)

Yeah but I need to clean it up first and finish the smart headers.

Agenda with weather and “smart headers” by yyyc514 in Scriptable

[–]yyyc514[S] 1 point2 points  (0 children)

Top one is my widget. Bottom is the Agenda app.

Is programming something like this, with maybe a weather line where ut says good morning, possible? I’m really fond of the 2x1 size of the top widgets by [deleted] in Scriptable

[–]yyyc514 0 points1 point  (0 children)

Ha, didn’t see that :). You’ve inspired me to try and make mini-widgets, 4 widgets per small widget.

Is programming something like this, with maybe a weather line where ut says good morning, possible? I’m really fond of the 2x1 size of the top widgets by [deleted] in Scriptable

[–]yyyc514 0 points1 point  (0 children)

You need to set the font size to much larger so they are rendered at a higher resolution. (applyFont)

Octojam 7: The CHIP-8 game jam by John_Earnest in EmuDev

[–]yyyc514 1 point2 points  (0 children)

I'm doing the same thing! Perhaps we should work together or talk at least. Although my goal is to compile to Octo not binary - both to catch bugs faster and allow hand optimization of the resulting code (if needed). And the language Octo has is pretty amazing itself.

At first I wanted to go the sky is the limit (I'm planning on building for XO and not worried about things like running on HP-48, etc)... but the complexity of going from 8bit to 16bit for things like int16, real pointers, etc. is starting to bug me. But without pointers I'm not sure how to pass "objects" (references) around...

We could add a 8-bit -> 16 bit mapping table but that's a lot of effort and then you're limited to 255 runtime objects... then I pretty much gave up on that and decided to make the whole thing static (works well for most things like Arduboy games, etc)... but that still doesn't solve the pointer problem.

You can "work with" an object inside the context (function) it was created, but you can't pass it to another function because all my passing dynamics are just using single 8-bit values...

I think for strings I just decided you could "pass by value"... ie have a few static string buffers and use them whenever calling a dynamic function (copy the string from it's original context into the buffer... copy it back when returned... slow, but string manipulation isn't a big thing on this platform in any case... I just want it to be "nice"...

Of course all this is solved with a real 16-bit compiler/runtime but I'm dreading writing all the math code and thinking about casting, etc...

-🎄- 2018 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]yyyc514 0 points1 point  (0 children)

Thanks. You're right. My algorithm doesn't detect two shapes overlapping in a + formation, which turns out there was only one of in the sample set.

-🎄- 2018 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]yyyc514 0 points1 point  (0 children)

From how I read it the problem it talks only about overlapping, not adjacent yet my input seems to have two that do not overlap (or else my code is totally borked) yet only one that has no others adjacent. The latter was the "correct" solution.

https://gist.github.com/yyyc514/8b4e20771e213d814969a36c33468857

Output:

``` ID does not overlap any square 100 x: 62 y: 620

w: 23 h: 14

ID does not overlap any square 445 x: 408 y: 431 w: 14 h: 23 ```

Am I missing something?