Show newer

Expressions that evaluate to 100 

123+45-67+8-9
123+4-5+67-89
123-45-67+89
123-4-5-6-7+8-9
12+3+4+5-6-7+89
12+3-4+5+67+8+9
12-3-4+5-6+7+89
1+23-4+56+7+8+9
1+23-4+5+6+78-9
1+2+34-5+67-8+9
1+2+3-4+5+6+78+9

Show thread

At first I came up with a solution in JavaScript.
time spent: 22min
execution time: ~170ms
loc: 21

Show thread

At todays C++ meetup I was told a programming quiz:

Given the digits 1-9 (in that order), you can combine them with either '+', '-' or nothing.
Now find all of these mathematical terms, that evaluate to 100.

You can use any programming language and library you like and you have 1 hour to complete the task.

Interesting. I just found out that ldd is a shell script.

I just found out that a.out is not actually a.out but ELF. I feel tricked.

FSMaxB boosted

In the meantime: Why not help me with finding better wordlists (less obscene and garbage words) for fsmaxb.github.io/correcthorseb

Show thread

What I was wondering recently: If people are so bad at thinking up good passwords, why not just generate good ones for them and display them as possible candidate? (But definitely not send them via email).

@bps ใƒ€ใƒ–ใƒซใ‚ณใƒณใƒ‘ใ‚คใƒผใƒซ

At the you can reach me on my DECT phone via 4251

FSMaxB boosted
FSMaxB boosted

New scientific paper using Pepper&Carrot sources ๐Ÿ‘ "Deep Normal Estimation for Automatic Shading of Hand-Drawn Characters by Trinity College Dublin" peppercarrot.com/en/article456

FSMaxB boosted

I just found out that is back with a new season. I have some catching up to do.

FSMaxB boosted

At the Moomin Cafe in Tokyo, if you go by yourself, they sit a moomin with you, so you won't be lonely.

FSMaxB boosted

Minor improvements in my STL unfolding code resulted in something that appears to be a Stanford Bunny.

I just noticed that this metric also discourages trailing spaces in empty lines. ๐Ÿ‘

Show thread

Interesting metric for measuring code complexity: youtube.com/watch?v=P2lxGnbDkD
The idea is to measure the area of indentation. This is like LOC but including how nested a program is.

Show older
mastodon.cloud

Everyone is welcome as long as you follow our code of conduct! Thank you. Mastodon.cloud is maintained by Sujitech, LLC.