You need to open it in Coda to see it correctly
Very cool! Do you think it would be possible to make the black squares white and the yellow squares a darker color? Might be easier to read.
I think @Xyzor_Max’s clock was designed for dark mode because the “black” squares aren’t strictly black but match the dark mode’s page background.
Very cool indeed
ahhhh, now if only there were a way to detect if the user is in dark mode…
Well, while there’s no way to detect that, one can use unicode symbols (e.g. squares) instead of
Rectangle()s, so that instead of fixed rectangle color the squares would obey font color:
g e n i u s
@Connor_McCormick1 , you CAN change the colors.
As the jedi said… “view the source!”
The yellow is defined as a column in the __CLOCK table thats hidden below the display. Its currently #FFFF00. To make it black, change it to #000000
The black squares are defined in the _DIGITS table below that.
You need to edit the formula in the ‘image’ column.
wherever you see #1F1F1F, change it to #FFFFFF.
All my clients use the dark mode, so i have become used to it.
I will make a new version with a switch to flip between light and dark modes
Great achievement , thanks sharing with the community.
It seems that you have a serious skill set, being able to build this out.
I have been learning a lot from the community, but for sure not able (yet) to get my head around such more complex challenges.
I recently came across this article and start for myself to create a picture of what should be done in Coda to get it working, but so far I get rather soon stuck in how to give it shape.
If you have some suggestions from where or how to start building such skills, being able to write up the steps necessary, to accomplish the end result, I would be glad to follow up on that.
Your post about Denominations got me thinking. I had to write some code for this exact problem during an interview for a big multinational tech corporation many years ago. Its tricky enough and I just about got it done in the time allocated.
So I have given this a try in Coda and found that
A.Floor(N)formula rounds an amount A, using multiples of N
- but only seems to work reliably if A is integer (think thats a BUG!)
- then I need to compute the remaining amount after each calculation
- and use that for the next denomination
- i put all these calculations into a TABLE so i can try varying amounts (one per row)
- its best to hide all the ‘remainder’ columns for clarity
- i used the EURO denominations because those are the only ones i know
- I put all the formulas in a TABLE so I can try it out with lots of different amounts
not sure how much my approach differs from the EXCEL example you are using?
Thank you very much for your time, sharing your approach and giving me and the community the chance to learn.
These days I will study you approach, but already at this point I can say that your experience modeling solutions is a big advantage as you have quite fast some possible scenarios in mind how to structure the schema and what formulas could come easy to solve steps to the solution.
Once more, thanks a lot that you are willing to spend your time and showcase your impressive skills
haloween scary clock!
i mentor teenage coders at my local Coder Dojo and i’ve started to use CODA as a way to encapsulate my notes AND to run example code. CODA is not ‘officially’ one of the languages they promote, but my group are finding it extremely useful for educational purposes.
so for halloween, i thought i would introduce them to the ‘digital clock’ document i did earlier, only using scary icons for the digits.