A coding academy for high school students has been thrown a lifeline after its “god-like” founder was accused of harassment.