Skip to content

Instantly share code, notes, and snippets.

View Eddolan's full-sized avatar

Eddie Dolan Eddolan

View GitHub Profile
### Keybase proof
I hereby claim:
* I am eddolan on github.
* I am eddiedolan (https://keybase.io/eddiedolan) on keybase.
* I have a public key whose fingerprint is 2B82 7E36 9938 83AB 0AF9 B5AC 3A4B D195 667D 0BCE
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am eddolan on github.
  • I am eddiedolan (https://keybase.io/eddiedolan) on keybase.
  • I have a public key whose fingerprint is 1252 47BE 94B3 0D2C 3C7D B9C4 0EE1 DE8D 4D03 415F

To claim this, I am signing this object:

var fs = require('fs');
fs.readFile('subtitle.srt', function(error, data) {
if(error)
throw error;
var text = data.toString();
var lines = text.split('\n');
var output = [];