Skip to content

Instantly share code, notes, and snippets.

View kenold's full-sized avatar

Kenold Beauplan kenold

View GitHub Profile
@kenold
kenold / handlebars.helpers.ifEquals.js
Created May 16, 2018 15:11 — forked from niksumeiko/handlebars.helpers.ifEquals.js
Handlebars.js templates engine custom IF condition helper. Allows to compare values one to each other like you are used to in programming.
// Compares first value to the second one allowing entering IF clouse if true.
// Otherwise entering ELSE clause if exist.
Handlebars.registerHelper('ifEquals', function(a, b, options) {
if (a === b) {
return options.fn(this);
}
return options.inverse(this);
});
@kenold
kenold / metric_apps.md
Created June 23, 2016 18:46 — forked from petehamilton/metric_apps.md
Useful Metric Dashboard Research Links

Dashboards

Charting