Skip to content

Instantly share code, notes, and snippets.

View deepakjois's full-sized avatar
🎯
Focusing

Deepak Jois deepakjois

🎯
Focusing
View GitHub Profile
From 4e65589665eb91964eca0cf90fd7469dcdc566e7 Mon Sep 17 00:00:00 2001
From: Deepak Jois <deepak.jois@gmail.com>
Date: Sat, 17 Apr 2010 15:50:25 -0700
Subject: [PATCH] Added script to make rectangles consistent
---
js/script.js | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/js/script.js b/js/script.js
// get the list of twitter usernames from the html of an element (entered in CMS) and then display.
$($("#twitterlist p").html().split(",")).each( function(i) {
$.trim(this);
$("#twitter-users").append($("<div/>").attr({id: "user-" + i, class: "item"}));
getTwitters('user-' + i, {
id: this,
count: 1,
enableLinks: true,
ignoreReplies: true,
@deepakjois
deepakjois / main.go
Created May 24, 2011 02:06
MP3 file information parsing using Go and libmpg123
package main
import "mp3"
import "os"
func main() {
mp3.PrintInfo(os.Args[1])
}
@deepakjois
deepakjois / music.go
Created June 29, 2011 03:37
Basic MP3 Player using mpg123 and ao
package mp3
// #cgo LDFLAGS: -lmpg123 -lao -ldl -lm
/*
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
@deepakjois
deepakjois / err.txt
Created June 29, 2011 04:16
Playing audio using libmpg123 and libao
$ ./main ~/Music/mpd/demo.mp3
ID3V2 tag found
Dil Main Chuppa Ke Pyar Ka
Angelique Kidjo
Oyo
World
SIGTRAP: trace trap
pc: 0x7fff844715c0
➜ src echo $GOPATH
/Users/deepak/gopkgs
➜ src ls $GOPATH/pkg/darwin_amd64/github.com/deepakjois/msgpack
➜ src ls $GOPATH/pkg/darwin_amd64/github.com/deepakjois/msgpack
go.a
➜ src gotest -x -v -test.bench=..
gotest 0.00s: gomake testpackage-clean
rm -f _test/serialization.a
[+0.03s]
gotest 0.03s: gomake testpackage GOTESTFILES=
@deepakjois
deepakjois / fiddle.css
Created December 3, 2011 22:37
Some Description Here
body { display:none }
@deepakjois
deepakjois / fiddle.css
Created December 3, 2011 22:38
Some Description Here
body { display:none }
@deepakjois
deepakjois / fiddle.css
Created December 4, 2011 00:50
Some Description Here
body { display:none }