Skip to content

Instantly share code, notes, and snippets.

View mehulsbhandari's full-sized avatar

Mehul Bhandari mehulsbhandari

View GitHub Profile
@mehulsbhandari
mehulsbhandari / sync.php
Created November 16, 2017 12:51 — forked from Viper007Bond/sync.php
Google Contacts Sync
<?php
/**
* Google Contacts Syncer
* by Alex Mills (http://www.viper007bond.com/)
*
* This script copies all contacts from Google account A to
* Google account B, wiping out all existing contacts in
* account B's account in the process.
*
@mehulsbhandari
mehulsbhandari / fullname.js
Created November 26, 2016 04:13 — forked from dmulvi/fullname.js
SugarCRM 7 - add fields to Full Name headerpane display (middle name, nick name, preferred name etc)
/*
* I only wanted to apply this change to the Contacts modules so I put this file in:
* custom/modules/Contacts/clients/base/fields/fullname/
*/
({
extendsFrom: 'FullnameField',
formatMap: {
'f': 'first_name',
'l': 'last_name',
@mehulsbhandari
mehulsbhandari / dashlet-test.js
Created August 2, 2016 11:15 — forked from betobaz/dashlet-test.js
SugarCRM:: Sidecar unit test
ddescribe("Dashlet dashlet", function () {
var viewName = 'dashlet',
view,
layout,
context,
layoutName = 'record',
moduleName = 'Opportunities',
model;
beforeEach(function () {