Skip to content

Instantly share code, notes, and snippets.

View mateogianolio's full-sized avatar

Mateo Gianolio mateogianolio

  • Malmö, Sweden
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mateogianolio on github.
  • I am mateogianolio (https://keybase.io/mateogianolio) on keybase.
  • I have a public key ASAmsz1eYxEWnFxsiYVY3_1DnNXFtRIAkAG8TuPI2jJZYwo

To claim this, I am signing this object:

{
'targets': [
{
'target_name': 'math',
'sources': [
'factorial.cc'
]
}
]
}
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@mateogianolio
mateogianolio / srt-to-json.js
Last active September 21, 2021 14:51
converts an SRT file into JSON
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 = [];