This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const languages = [ | |
{ | |
"code": "af", | |
"langEnglishName": "Afrikaans" | |
}, | |
{ | |
"code": "ak", | |
"langEnglishName": "Akan" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WEBVTT | |
1 | |
00:00:03.643 --> 00:00:07.514 | |
You know, we should all do? | |
2 | |
00:00:07.557 --> 00:00:10.086 | |
Go | |
see a musical. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const signs = { | |
topLeft: '┌', | |
topVert: '┬', | |
topRight: '┐', | |
bottomLeft: '└', | |
bottomVert: '┴', | |
bottomRight: '┘', | |
horizLeft: '├', | |
horizRight: '┤', | |
vert: '│', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def make_readable_size(size_in_bytes) | |
suffix = %W(B KB MB) | |
idx = 0 | |
rest = 0 | |
size = size_in_bytes | |
while size / 1024 > 1 | |
idx += 1 | |
new_size = size / 1024 | |
rest = size - new_size * 1024 |
OlderNewer