Skip to content

Instantly share code, notes, and snippets.

View mateon1's full-sized avatar

Mateusz Naściszewski mateon1

View GitHub Profile
@mildsunrise
mildsunrise / _migrated.md
Last active May 9, 2024 22:26
🕵️‍♀️ MP4 parser / dissector for the command line
--- backend/dip-obj.c
+++ backend/dip-obj.c
@@ -556,43 +556,72 @@
}
/*! \todo Add support for 16 bit color values (#816).
+ Added the commits of https://github.com/hean01/iscan/commit/147edc66ceddb34b5e0c8745a08ce6c96e7e02b5 and https://github.com/hean01/iscan/commit/575468d83bb70d928f5893c4c4b4ce7faa15e3d5 to support 16bit color.
*/
void
dip_apply_color_profile (const void *self, const buffer *buf,
@tralves
tralves / get_indexdb_sizes.js
Last active March 9, 2024 13:34
Calculate sizes of all IndexDB database and tables
var getTableSize = function(db, dbName){
return new Promise((resolve,reject) => {
if (db == null) {
return reject();
}
var size = 0;
db = event.target.result;
var transaction = db.transaction([dbName])
.objectStore(dbName)
.openCursor();