Skip to content

Instantly share code, notes, and snippets.

View antonioortegajr's full-sized avatar
💭
thinking about Batman

antonioortegajr antonioortegajr

💭
thinking about Batman
View GitHub Profile
@antonioortegajr
antonioortegajr / Change map pin cluster colors in IDX Broker
Created November 25, 2014 01:59
Change map pin cluster colors in IDX Broker
<!-- Change the color of map pin clusters in the IDX Broker Map page or widgets Simply change the rgba values -->
<!-- CSS is unsupported by IDX Broker. DO NOT contact IDX Broker for support on any of this CSS -->
.marker-cluster div {background-color: #1e73be !Important;}
.marker-cluster-medium {color: #ffffff !Important;}
.marker-cluster-medium span {color: #ffffff !Important;}
.leaflet-marker-icon.marker-cluster.marker-cluster-small.leaflet-zoom-animated.leaflet-clickable {color: #ffffff !Important;}
.marker-cluster-medium {
background-color: rgba(252, 252, 252, 0.6) !Important;
}
@antonioortegajr
antonioortegajr / Create map pin change in IDX Broker
Created November 25, 2014 02:01
Create map pin change in IDX Broker
.leaflet-marker-icon.leaflet-zoom-animated.leaflet-clickable { padding: 16px 16px 0px 0px;
background: url('yourimage.jpg');
background-size:auto; width:0px !Important; height: 0px !Important; background-repeat:no-repeat }
@antonioortegajr
antonioortegajr / auto append agent ID on IDX Broker bio page
Created November 25, 2014 02:04
auto append agent ID on IDX Broker bio page
// script will pull agent ID from bio page url and auto append to cookie lead to that agent
var local = location.href;
var pathArray = window.location.pathname.split( '/' );
var append = '?agentHeaderID=';
var appendID = pathArray[3];
@antonioortegajr
antonioortegajr / Auto suggest in email page for Desk.com
Created April 8, 2015 16:49
Adds auto suggest for Desk.com email us page
<!-- auto suggest kb articles -->
<div class="message_suggest" id="form_suggest_web">
<div class="autosuggest right-side hide"></div>
<div id="common" class="right-side">
<h2 class="muted">Common Questions</h2>
<ul class="unstyled">
<li><em>Start typing your question in the form, and you&#39;ll see knowledge base results here.</em></li>
</ul>
</div>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
<body>
<style>
a.form-link {
display: block;
box-sizing: border-box;
<?php
$subdomain = 'your-sitename';
$req_url = 'https://'.$subdomain.'.desk.com/oauth/request_token';
$authurl = 'https://'.$subdomain.'.desk.com/oauth/authorize';
$acc_url = 'https://'.$subdomain.'.desk.com/oauth/access_token';
$api_url = 'https://'.$subdomain.'.desk.com/api/v2';
// SET YOUR CALLBACK URL
$callback = 'http://localhost:3000/auth/desk/callback';
@antonioortegajr
antonioortegajr / VFRemoteObject.html
Last active August 29, 2015 14:25 — forked from karanrajs/VFRemoteObject.html
A Visualforce page to demonstrate the functionality of Visualforce Remote Objects
<!---
@author : Karanraj
@Description : A Visualforce page to demonstrate the functionality of Remote Objects
-->
<apex:page showHeader="false" standardStylesheets="false">
<!-- Boostrap and jQuery file -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" />
@antonioortegajr
antonioortegajr / GEOjson
Last active August 29, 2015 14:26
json sample for GEOjson file
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-73.995962,
40.705329
@antonioortegajr
antonioortegajr / python-get-request.py
Created August 11, 2015 20:24
python get request
import urllib2
urllib2.urlopen("http://example.com/").read()
@antonioortegajr
antonioortegajr / IDX Broker Lead API call return.json
Last active June 2, 2017 21:18
IDX Broker Lead API call return
[
{
"id": "216",
"firstName": "Bruce",
"lastName": "Wayne",
"email": "bats@test.com",
"email2": "",
"phone": "555-bat-phone",
"address": "Wayne Manor",
"city": "Gotham",