Skip to content

Instantly share code, notes, and snippets.

Avatar

Abhishek Hingnikar darkyen

View GitHub Profile
@darkyen
darkyen / Id3NodeReader.js
Created Apr 24, 2012
A simple ID3v2.3.0 Tag Reader written for node.js
View Id3NodeReader.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 ) |
@darkyen
darkyen / decoder.cpp
Created Jul 12, 2012
C++ ffmpeg decoder
View decoder.cpp
/*
* encoder.cpp
*
* Created on: Jul 12, 2012
* Author : Abhishek Hingnikar
* @TODO: remove the file deps.
* ADD STREAM DEPS so that u can buffer output.
* Structure
* @JSAPI
* ffmpeg{
View project.c
#include<conio.h>
#include<stdio.h>
#include<graphics.h>
#include<dos.h>
/*
***************************************************************************
* Programmer : Abhishek Hingnikar *
* AIM : Mobile Shop Management System in C *
***************************************************************************
*/
@darkyen
darkyen / app.js
Created Aug 8, 2012
readReference error with node-mongodb-native
View app.js
var mongodb = require( 'mongodb' ),
Server = mongodb.Server,
Db = mongodb.Db,
MongoModule = {};
MongoModule.setup = function() {
// Initialize the db connection
var client = new Db( 'tartempion',
new Server(
'127.0.0.1',
View Friendly Links & Pro Tips
View supaignore.js
/*
Since Octavian once appointed me as a vampire slayer.
I am here by giving you a tool to kill help vampires
*/
/*
Run it in console and then do
blade.slash(<idOfVampire>); to nuke em alive em.
blade.mercy(<idOfVampire>); to leave em alive.
*/
var blade = new (function(){
View css_editor.js
/* css_editor.js */
module.exports = function(element,css){
for(var key in css){
element.style[key] = css[key];
}
}
View Second.js
var uuid = require( 'node-uuid' ),
engines = require( './engines.js' ),
util = require( './util.js' );
/**
* This is what the code must do:
* - Connect to the websocket.
* - Create a channel which name is a generated UUID.
* - Listen on "send key" event from the websocket to get
* a keyCode.
View puffy.css
/* (C) Tapeer Team 2012
* Puffy is/was/will be a brain work of Abhishek Hingnikar , Nikita Arora , Lila Pustovoyt , Jennifer Inzer and
* other members of tapeer design team
* AWW SERIOUSLY MAN YOU GUYS HAVE READ THIS N1000 TIMES ... SO
* THIS IS JUST TO SAY THIS FILE IS DISTRIBUTED UNDER MIT LICENSE HAPPY ? KTHX BYE
*/
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans);
@darkyen
darkyen / index.html
Created Oct 16, 2012
This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
View index.html
<i class="macbook"></i>
You can’t perform that action at this time.