Skip to content

Instantly share code, notes, and snippets.

View agdolla's full-sized avatar
🦒
Surviving

Gabor Dolla agdolla

🦒
Surviving
  • Budapest, Hungary
View GitHub Profile
@agdolla
agdolla / gist:5473807
Created April 27, 2013 17:09
Find out sheet id from workbook.xml.
private static class WorkbookHandler extends DefaultHandler {
private String wbName;
private String rid = null;
public WorkbookHandler(String wbName) {
this.wbName = wbName;
if (wbName == null) throw new RuntimeException("wbName must not be null");
}
@agdolla
agdolla / mongotests-sem.js
Created October 9, 2012 09:12
nodeunit does not return
var q = require('q')
, mongodb = require('mongodb')
, Db = mongodb.Db
, Server = mongodb.Server;
var server = 'localhost';
var port = 27017;
var dbconnections = [];
var sem = require('semaphore')(1);