Skip to content

Instantly share code, notes, and snippets.

View birla's full-sized avatar
🎯
Focusing

Prakhar Birla birla

🎯
Focusing
View GitHub Profile
@birla
birla / .block
Created April 3, 2023 05:47 — forked from tomshanley/.block
Sankey with circular links
license: mit
@birla
birla / remove_silence.ts
Created April 30, 2022 17:13 — forked from smashah/remove_silence.ts
A simple way to remove silences below a certain threshold in an audio file [NODEJS/TS]
//add this to your package.json
// "audio-buffer-utils": "^5.1.2",
// "audio-decode": "^1.4.0",
// "audiobuffer-to-wav": "^1.0.0",
// "node-lame": "^1.2.0",
// "ogg.js": "^0.1.0",
// "opus.js": "^0.1.1",
const fs = require('fs');
@birla
birla / gist:4698932
Created February 2, 2013 19:32
Backbone Application Console Logging (uses underscore.js)
App.Log = {
level: 0,
_ie: (
function(){
var undef, v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->', all[0] );
return v > 4 ? v : undef;