Skip to content

Instantly share code, notes, and snippets.

View dimitrilongo's full-sized avatar

Dimitri Longo dimitrilongo

View GitHub Profile
@dimitrilongo
dimitrilongo / gist:b43d3f7daa233fc17a99e7eb0628f815
Created December 23, 2025 08:13
Voici trois snippets Deluge essentiels pour détecter et gérer les doublons dans Zoho CRM
/*
*
* Détection Doublons par Email
*
*/
searchEmail = input.email;
duplicates = zoho.crm.searchRecords("Contacts", "(Email:equals:" + searchEmail + ")");
if(duplicates.size() > 1)
{
@dimitrilongo
dimitrilongo / gist:2895b3803f72669ed49d13574d4a631f
Created August 30, 2025 12:40
Function for Search records for a specific custom view with Zoho Deluge in Zoho CRM
string standalone.el_get_records_custom_view(Int cvid,String slug_module)
{
/**
* Function for Search records for a specific custom view
*
* @param string slug_module Module API Name
* @param INT cvid Id of custom view
*
* @return array
*/
@dimitrilongo
dimitrilongo / gist:810a7a4e79809580b2adc72f01e2f5ca
Created August 8, 2025 10:41
Zoho Deluge : Standalone function Rajout d'un tag à un record
string standalone.el_add_tag_to_record(Int record_id,String module_slug,String tag_label)
{
/**
* Add tags to a specific records in a specific module
*
* @param INT record_id ID Zoho Record ID
* @param string module_slug Zoho Module name (Leads ...)
* @param string tag_label Tag label
*
* @return string
@dimitrilongo
dimitrilongo / languages.yaml
Last active May 20, 2016 19:40
languages.yaml
fr:
THEME_MYTHEME_DASHBOARD_TITLE: "Dashboard"
THEME_MYTHEME_GENERAL: "General"
THEME_MYTHEME_STATUS: "Status"
THEME_MYTHEME_SETTINGS: "Settings"
THEME_MYTHEME_SUPPORT: "Support"
THEME_MYTHEME_CREDITS: "Credits"
THEME_MYTHEME_DASHBOARD: "Dashboard"
THEME_MYTHEME_GOOGLE: "Google"
THEME_MYTHEME_WEBMASTERS: "Webmasters"
@dimitrilongo
dimitrilongo / gist:0c459b85c4dbbfabb7d8
Created October 21, 2015 17:20 — forked from codemis/gist:8225337
A Git pre-commit hook for validating code follows PHP's Fig Coding Standard. The script requires PEAR's Code Sniffer library. Change the variables to fit your project code structure. Just drop this file in your .git/hooks/ directory. This script is a modified file created by Soenke Ruempler.
#!/bin/bash
# PHP CodeSniffer pre-commit hook for git
#
# @author Soenke Ruempler <[email protected]>
# @author Sebastian Kaspari <[email protected]>
#
# see the README
PHPCS_BIN=/usr/local/bin/phpcs
PHPCS_CODING_STANDARD=PSR2