Hacker Newsnew | past | comments | ask | show | jobs | submit | ColeShepherd's commentslogin

Some potential alternatives to consider:

1.

    classList = ['highlighted', 'primary']
        .concatif(discount, 'on-sale')
        .join(' ')
2.

    classList = ' '.join(['highlighted', 'primary'] + (['on-sale'] if discount else []))
3.

    mut classList = ['highlighted', 'primary']
    if discount:
        classList.append('on-sale')
    classList = ' '.join(classList)

    freeze classList

4.

    def get_class_list(discount):
        mut classList = ['highlighted', 'primary']
        if discount:
            classList.append('on-sale')
        classList = ' '.join(classList)
        return classList

    classList = get_class_list(discount)


> present knowledge as a tree that you can expand to get deeper

I'm very interested in this. I've considered building this, but if this already exists, someone let me know please!


Can you please open-source it?


Sure, why not, here it is: https://github.com/freetonik/geostreaks


I would love an app with a configurable "unlock" task. Ex:

- Do a quick mindfulness/breathing exercise.

- Answer a quick quiz question related to something you're learning.

- Remind you of pending to-dos

Anyone know of an app like this?


> - Do a quick mindfulness/breathing exercise.

Clearspace does exactly this:

https://www.getclearspace.com/#how-it-works

I've been using it for a month or two, with good results. Good luck!


For iOS, Screenzen is an app that does this: https://apps.apple.com/us/app/screenzen-screen-time-control/...


I wrote a chrome extension for this a year ago https://dengtab.com/


It’s not exactly like this but the Superhappy app makes you chat with a bot and ask it to unlock for a period of time.


Interactive music theory lessons & exercises: https://falsetto.app/

I tried to monetize the website a while ago but failed, and I realized it sucked the fun out of the project so I open-sourced it instead: https://github.com/ColeDeanShepherd/Falsetto


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: