Skip to content

Instantly share code, notes, and snippets.

View gb103's full-sized avatar

Gaurav Bansal gb103

View GitHub Profile
class LrcRow {
public long time; //lyrics start time in the timestamp format
public String content; //lyrics content
public String strTime; // lyrics start time in raw format
}
[length:03:05.42]
[re:www.megalobiz.com/lrc/maker]
[ve:v1.2.3]
[00:21.73]Ni lakk tera patla jea
[00:23.69]Patla jea
[00:25.19]Jado turdi 17 vall khawe
[00:27.02]Morni ji tor kudiye
[00:29.02]Tor kudiye
[00:30.44]Hun mundyan nu hosh kitho aawe
[00:32.29]Ni nagni di akh waliye
@gb103
gb103 / index.js
Last active March 19, 2021 07:45
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const nodemailer = require('nodemailer');
const cors = require('cors')({origin: true});
const rp = require('request-promise');
const jsonDiff = require('json-diff');
//const jsondiffpatch = require('jsondiffpatch').create();
//const deepDiff = require('deep-diff').diff;
admin.initializeApp(functions.config().firebase);
/**
* sortedScoreTreeSet : Keep all score entries into sorted order.
* trackScoreShuffler : Provide the Map of uniqueue Id and their timestamp based on score, it
* provides the uniqueue Id for the oldest entry for given score. As there can be multiple item of same score,
* that's why used linkedHashMap
* trackScoreMap : Used to check if a item entry is present into the queue and return the item
*/
private var sortedScoreTreeSet //<score>
: TreeSet<Float>
private var trackScoreShuffler // <score, LinkedHashMap<uniqueId, timestamp>