Skip to content

Instantly share code, notes, and snippets.

View mainerror's full-sized avatar

Octavian A. Damiean mainerror

  • University of Graz
  • Austria, Graz
View GitHub Profile
@mainerror
mainerror / rules.md
Created July 4, 2012 08:45 — forked from pyrodante/rules.md
Android Stack Overflow chat room rules
  • You will not gain write access to the room if you have a low reputation score, have a default user name (such as User12345), and/or have not asked & answered reasonable questions on Stack Overflow - do not repeatedly request write access, we know you're waiting for access and multiple requests will get you blocked.

  • Please do not ask a question unless you have first thoroughly researched it yourself.

  • developer.android.com has everything you should ever need to do all but the most advanced functionality. 99% of the time your solution will be there.

  • Please speak English as correctly as you're able.

  • Do not paste code into chat, instead use a site such as Pastebin.

@mainerror
mainerror / Id3NodeReader.js
Created April 24, 2012 17:25 — forked from darkyen/Id3NodeReader.js
A simple ID3v2.3.0 Tag Reader written for node.js
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 ) |