Skip to content

Instantly share code, notes, and snippets.

@Toxicable
Toxicable / 1.instructions.txt
Last active April 3, 2024 22:56
realestate map average price
1. Install Tempermonkey https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
2. CLick the Tampermonkey icon
3. Click Create New Script
4. Paste in the below code
4.5 Hit CMD+S to save it
5. Go to https://www.realestate.com.au/buy or https://www.realestate.com.au/sold
6. Click Filters, select "Only show properties with a sold price"
7. Search and click the Map view
It'll have issues when the results have 2 apartments in the same building - I was looking for houses so didn't add support for that at the second
@Toxicable
Toxicable / gist:604e7551db86b5caac85b067d42fafed
Last active January 10, 2023 05:49
realestate.com.au:filter-listing+add-google-maps
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.realestate.com.au/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=realestate.com.au
// @grant none
// @run-at document-start
@Toxicable
Toxicable / test.spec.js
Created September 12, 2019 21:52
angular jasmine nodejs test
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define("test.spec.js", ["require", "exports", "tslib", "@angular/core/testing", "@angular/platform-browser-dynamic/testing", "@angular/core", "zone.js/dist/zone-node", "zone.js/dist/zone-testing", "core-js/es/reflect"], factory);
}
})(function (require, exports) {
"use strict";
import * as querystring from 'querystring';
function isObject(arg: any) {
return typeof(arg) === 'object' && arg !== null;
}
const slashedProtocol = {
http: true,
https: true,
ftp: true,
import 'zone.js/dist/zone-node';
import 'reflect-metadata';
import * as http from 'http';
import * as fs from 'fs';
import * as util from 'util';
import * as path from 'path';
import * as url from 'url';
import * as mime from 'mime-types';
import * as os from 'os';
import { ɵCommonEngine as CommonEngine } from '@nguniversal/common/engine';
const fs = require('fs');
const path = require('path');
const JasmineRunner = require('jasmine/lib/jasmine');
const {createInterface} = require('readline');
const UTF8 = {
encoding: 'utf-8'
};
// These exit codes are handled specially by Bazel:
@Toxicable
Toxicable / cloudSettings
Last active August 9, 2018 03:53
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-09T03:53:20.393Z","extensionVersion":"v3.0.0"}
import { ChildProcess, spawn } from 'child_process';
import * as execa from 'execa';
const nodeCleanup = require('node-cleanup');
const terminate = require('terminate');
process.env.NODE_ENV = 'e2e';
let childProcesses: ChildProcess[] = [];
function start(cmd: string) {
const proc = execa.shell(cmd);
let [root] = getAllAngularRootElements();
let appRoot = ng.probe(root);
let [rootComponent] = appRoot.injector.get(ng.coreTokens.ApplicationRef).components;
let ChangeDetectorRef = rootComponent.changeDetectorRef.constructor.prototype;
ChangeDetectorRef.constructor.prototype.detectChanges = (function () {
let oldDC = ChangeDetectorRef.constructor.prototype.detectChanges;
let map = new WeakMap();
return function () {
Zone.root.run(() => showChangeDetection(this));
return oldDC.apply(this, arguments);
export function validate(module: any, bootstrapComponent: any, selector = 'app-root', timeout = 5000) {
@NgModule({
imports: [
BrowserModule.withServerTransition({ appId: selector }),
module
],
declarations: [bootstrapComponent],
bootstrap: [bootstrapComponent],
})
class AppModule { }