function create_link($string) {

		$input = media_title($string);
...

PHP Prepare links - friendly URLs

by Memf, September 04, 2008 05:57, 2 refactorings, tagged with create link, links, memf, function, memforis, code, prepare, URLs, url, friendly urls, friendly, short, php

Please help shorten the cod...

71367d98df2bf14cbf704e7741eb402d Talk
%w[uri net/http hpricot].each {|lib| require lib}
url = 'http://en.wikipedia.org/wiki/Night'
response = Net::HTTP.get_response(URI.parse(url))
...

Ruby Absolute links

by michael.twofish, March 11, 2008 15:02, No refactoring, tagged with URLs, absolute links, relative links

Converting all URLs in a re...

6268bd082e6c4ca2664b094f75a38759 Talk