ruby code used during hack cc