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
| // https://www.rentfaster.ca/ab/calgary/rentals/condo/?l=16,51.0302,-114.1004&city_slug=ab%2Fcalgary | |
| pricesqrft = 0.0; | |
| numPlaces = 0; | |
| $('.listings.listings-list .sv_dtl').each((i, listing) => { | |
| let price = parseInt($(listing).find('.infobox-price span').eq(1)[0].textContent); | |
| if (isNaN(price)) return; | |
| let sqft = $(listing).find('.sq_feet')[0]; | |
| if (sqft === undefined) return; |
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
| var currentRequests = 0; | |
| var requestsPerMinute = 10; | |
| var MAX_REQUESTS = 100; | |
| var requestStatus = []; | |
| var poll = setInterval(function () { | |
| console.log('****** REQUESTS ******'); | |
| if (requestStatus.length == 0) { | |
| console.log('No requests sent'); |
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
| /* Create the temp table */ | |
| CREATE TABLE devices_events_locations_temp LIKE devices_events_locations; -- 1 sec | |
| /* Run the Migration on the temp table */ | |
| ALTER TABLE devices_events_locations_temp | |
| ADD beacon_name VARCHAR(64) DEFAULT NULL, | |
| ADD beacon_address VARCHAR(64) DEFAULT NULL, | |
| ADD CONSTRAINT `FK_D66205B1F6AD5579` FOREIGN KEY (beacon_id) REFERENCES beacons (id), | |
| ADD CONSTRAINT `FK_D66205B1FFC3B1AC` FOREIGN KEY (device_event_id) REFERENCES devices_events (id); -- 1 sec |