I have a video file on my local disk. I also have some subtitles (in HTML5's [WebVTT][] format).
I want to create an HTML file to play that video with subtitles, all from the local filesystem.
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))| # npm using https for git | |
| git config --global url."https://github.com/".insteadOf git@github.com: | |
| git config --global url."https://".insteadOf git:// | |
| # npm using git for https | |
| git config --global url."git@github.com:".insteadOf https://github.com/ | |
| git config --global url."git://".insteadOf https:// |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
| # tag target commits as demo-start, demo-end | |
| # move to the start of your presentration with `git checkout demo-start` | |
| # use to `git next`, `git prev` to jump between "slides" | |
| git config --global alias.next '!git checkout `git rev-list HEAD..demo-end | tail -1`' | |
| git config --global alias.prev 'checkout HEAD^' |
| """ | |
| Test performance of these counting methods: | |
| - count_if_else: Set to 1 if not yet seen and increment otherwise | |
| - count_if: Set to 0 if not yet seen, then increment regardless of containment | |
| - count_exception: Attempt to increment and set to 1 if KeyError caught | |
| - count_setdefault: Set default value to 0, then increment | |
| - count_fromkeys: Create dict with necessary keys set to 0, then increment each | |
| - count_set_and_comprehension: Create dict of items and counts using a set | |
| - count_defaultdict: Increment count, automatically setting unseen values to 0 |
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
After reading [this Ars Technica article][1], I decided that I wanted to start using btrfs on my home fileserver. It had been running for a few years with an mdadm raid-10 array, formatted with ext4, holding about 3.4 TB of data. I figured I would take advantage of some of the special capabilities of btrfs to perform the conversion in place. After some research, I formed my basic plan.