Leaflet and WebGL sample rendering 80T points for more info read blog post
This file contains 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
#!/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} | |
} |
This file contains 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
/** | |
* | |
* @param type $data | |
* @return boolean | |
*/ | |
function send_email($data){ | |
//include files | |
include_once('email/class.phpmailer.php'); | |
$mail = new PHPMailer(); |
This file contains 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
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}', |
This file contains 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
/********* 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; |