Skip to content

Instantly share code, notes, and snippets.

@audunolsen
audunolsen / styles.less
Last active November 10, 2017 08:11
A .less snippet to zero pad the gutter numbers in Atom
/* Zero pad the gutter numbers in Atom for a cleaner look. */
// loop through 1 - 9
@iterations: 8;
.double-zero-pad (@i) when (@i >= 0) {
.line-number[data-buffer-row="@{i}"]::before,
.git-line-removed[data-buffer-row="@{i}"]::before { content: '00' !important }
.double-zero-pad(@i - 1);
} .double-zero-pad (@iterations);
@audunolsen
audunolsen / fizzbuzz.js
Last active August 10, 2018 21:16
My blind attempt at a compact script for the FizzBuzz game.
for(i=1;i<101;i++)
o =i%3?'':'Fizz',
o+=i%5?'':'Buzz',
console.log(o||i)