If you had known about your company earlier, you should not have resigned. You should have taken LEAVE and gone for a vacation. Knowing such a bad company, you have done a mistake of submitting RESIGNATION. Meet the top most guy in your company and tell your family problem. If that is genuine, he would permit you or atleast request for a leave..