Skip to content

Instantly share code, notes, and snippets.

View rajeshvaya's full-sized avatar

Rajesh Vaya rajeshvaya

View GitHub Profile
@rajeshvaya
rajeshvaya / README.md
Created January 26, 2017 06:43 — forked from Sumbera/README.md
Many points with Leaflet WebGL

Leaflet and WebGL sample rendering 80T points for more info read blog post

inspired by this and by very nice WebGL tutorial here

@rajeshvaya
rajeshvaya / SugarCRM Cheat Sheet.md
Last active October 24, 2018 18:45 — forked from spinegar/Joe_______'s SugarCRM Cheat Sheet
Joe_______'s SugarCRM Cheat Sheet

Sugarwiki

Adding a Field to the Modules Subpanel, Popup Search definitions

  • Code way:
1.      Use metadata/popupdefs.php (custom folder, if there is none copy original)
2.      Seek section searchdefs'   => array(…)
3.      Add field to searchdefs
  • Studio way:
@rajeshvaya
rajeshvaya / git_checkout_commit_files.sh
Last active August 29, 2015 14:23
Git (print) checkout only updated files of a commit / or commit range
#!/bin/bash
function git_checkout_commit_files(){
# ${1} is the remote branch location
# ${2} is the commit id
printf "Starting to checkout files from remote/branch: ${1} at commit: ${2}\n"
sleep 1
printf "Fetching updates from git, please wait...\n"
git pull && printf "Successfully fetched update from ${1}\n Checking-out the files now, please wait..." && sleep 1 && git diff-tree --no-commit-id --name-only -r ${2} | xargs git checkout ${1}
}
@rajeshvaya
rajeshvaya / gist:acb72f650e2e3af83c29
Created April 14, 2015 10:29
Sending email via PHP mailer lib
/**
*
* @param type $data
* @return boolean
*/
function send_email($data){
//include files
include_once('email/class.phpmailer.php');
$mail = new PHPMailer();
Add a Custom Field to a SugarCRM Module and execute custom PHP code in that field on the DetailView.
Is a 2 step process.
1) Have to modify the detailviewdefs.php file and add a CustomCode to your field in this file...
/custom/modules/<MODULE-NAME_FOLDER>/metadata/detailviewdefs.php
set a variable in a customCode key/value like this...
'customCode' => '{$STATUS}',
/********* MIXINS *********/
.font-size(@px: 14){
font-size:(@px/14*100%) ;
}
.border-radius(@params){
border-radius: @params;
-webkit-border-radius: @params;
-moz-border-radius: @params;
-o-border-radius: @params;