Joined July 2012
·

Björn Andersson

That other software engineer at Media Pop
·
Singapore
·
·
·

timmyroseen: I set it on every image, when it swipes I check if the scroller variable is not undefined and then call destroy on it. I want to remember I had some issues when I had it cover the entire containing element.

Haha, that's a very good catch. A really silly if there. :)

splice changes the array in place, if it removes it'll return the items removed.

With the test cases I've had I've gotten out the results I want, so while I don't deny the possibility of a bug it's not in my current test cases.

Test cases being:
split('convoluted.madeup.example.with.more.stuff', '.', 1) => ["convoluted", "madeup.example.with.more.stuff"]
split("hello-do-nothing-with-me-except-an-array", '.', 1) => ["hello-do-nothing-with-me-except-an-array"]
split("first.second-but-also-the-remainder-even-if-more-mightve-been", '.', 3) =>
["first", "second-but-also-the-remainder-even-if-more-mightve-been"]

This is great!
I have an alias since before that creates nice one-line logs, that in my mind works great with this, so I'll just share:

In .gitconfig
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit

Achievements
619 Karma
82,696 Total ProTip Views