1.
classList = ['highlighted', 'primary'] .concatif(discount, 'on-sale') .join(' ')
classList = ' '.join(['highlighted', 'primary'] + (['on-sale'] if discount else []))
mut classList = ['highlighted', 'primary'] if discount: classList.append('on-sale') classList = ' '.join(classList) freeze classList
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)
I'm very interested in this. I've considered building this, but if this already exists, someone let me know please!
- 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?
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!
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
1.
2. 3. 4.