Code for the article "Total Variation Projection with First Order Schemes"