Hey Dave here, I'm the author of Pingy CLI. Very excited to know what people think of my super-simple build tool. I think it's very useful for sites that don't require a complicated bespoke build workflow like gulp or grunt.
If anybody has questions then they can leave a comment and I'll answer. :)
Or of course (depending on your JS style preferences) you could use a ternary conditional expression:
let a = (x === 10) ? 1000 : (x > 10) ? 200 : 300;
Can happen to anyone. Makes me wonder if GitHub could do some work to prevent the most common patterns for credentials being exposed.
I'm not sure what would be the best way to that. Perhaps just reject the push with a descriptive error message but editing your git history to remove offending file/data can be pretty messy.