tl;dr we're lazy, we're coders.
Let's make use of that.
- We don't like to start off new projects and write all the booooring boilerplate
- We like to fiddle with code and fix it
- We like recognition
- We're quickly bored
Hence, I present to you my idea:
tl;dr we're lazy, we're coders.
Let's make use of that.
Hence, I present to you my idea:
So, you want to send a motherfucking XMLHttpRequest (XHR, or commonly and falsly known as AJAX.) Too bad, just ran out of motherfucking XMLHttpRequests; but I still have one regular. XHR is not magic. It does not autofuckinmagically send things the way you want them do be sent. It does not do the thinking for you. It just sends an Http Request.
You get a hold on such a prime beast like this:
var fs = require('fs'); | |
var Buffer = require('buffer').Buffer; | |
var id3Reader = new (function(){ | |
// Credits to esailja // | |
var self = this; | |
function id3Size( buffer ) { | |
var integer = ( ( buffer[0] & 0x7F ) << 21 ) | | |
( ( buffer[1] & 0x7F ) << 14 ) | | |
( ( buffer[2] & 0x7F ) << 7 ) | |