Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
/* Strip before the first underline, by Henrique Vicente <henriquevicente@gmail.com> http://flickr.com/photos/henriquev/ Too cool to be copyrighted Done after listening to Rape me, by Nirvana To be used in production environment Method: child(strip("real_string")); // returns string */ function strip(element) { var x=0, rape = '', hand = element.split('_'); while(x<hand.length) { if(x>1) { rape +='_'; } rape += hand[x]; x++; } return rape; }
This paste will be private.
From the Design Piracy series on my blog: