I was trying to be measured in the language because I don't consider the TechCrunch article to be completely unbiased on the man, but yes, in general I agree. Intentionally sabotaging code should have you out the door on your ass.
Retaliation in response to rejected sexual overtures is one of the basic forms of sexual harassment. It's arguably a quid pro quo situation and absolutely qualifies as the kind of conduct that can lead to a hostile work environment.