This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is sample code for building a web scraper. | |
| // | |
| // For this sample, we use | |
| // http://www.citysearch.com/profile/10192700/lockhart_tx/black_s_barbecue.html | |
| // as a sample listing we want to scrape. | |
| // | |
| // For the full crawler, we will assume the crawl | |
| // starts from http://www.houzz.com/professionals/ | |
| var EightyApp = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class BlahBlah extends Plugin | |
| { | |
| /** | |
| * Add an author rewrite rule | |
| * @param Array $rules Current rewrite rules | |
| **/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Format the date field, leaving invalid dates alone | |
| if (strtotime($candidate->dob)) { | |
| $candidate->dob = date("d/m/Y", strtotime($candidate->dob)); | |
| } else if (isnull($candidate->dob)) { | |
| $candidate->dob = "MM/DD/YYYY"; | |
| } |