Skip to content

Instantly share code, notes, and snippets.

View enreeco's full-sized avatar
☁️
Salesforcing...

Enrico Murru enreeco

☁️
Salesforcing...
View GitHub Profile
@enreeco
enreeco / quickAction.cmp
Last active May 17, 2019 04:05
Salesforce Ligthning QuickAction popup automatic close
<aura:component implements="force:lightningQuickAction,force:hasRecordId">
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
Loading data, please wait. . .
</aura:component>
@enreeco
enreeco / Apex_Sobject_member_to_null.cls
Last active March 13, 2017 19:02
Apex class behavior with Null instance of Sobject
/*
MyController cnt = new MyController();
cnt.tst.Name = 'test';
cnt.tst = null;
system.debug('Test outside: '+(cnt.tst.Name == null)); //Test outside: true
system.debug('Test outside: '+(cnt.tst == null)); //Test outside: true
system.debug('Test outside: '+json.serializepretty(cnt.tst)); //Test outside: null
cnt.myMethod(); //Throws null pointer exceptions
*/
public class MyController {
@enreeco
enreeco / apex_webservice.cls
Created December 20, 2016 14:18
Apex Webservice Class
/**
* Title
*
* @author
* @version 1.0
* @description
* @uses
* @history
* yyyy-mm-dd :
*/
@enreeco
enreeco / batch_apex_class.cls
Created December 20, 2016 13:44
Batch Apex Class
/**
* Title
*
* @author
* @version 1.0
* @description
* @uses
* @history
* yyyy-mm-dd :
*/
@enreeco
enreeco / apex_test_class.cls
Last active January 30, 2024 06:17
Apex Test Class Template
/**
* Title
*
* @author
* @version 1.0
* @description
* @uses
* @history
* yyyy-mm-dd :
*/
@enreeco
enreeco / ApexClassDocHeader.apex
Last active April 12, 2022 18:40 — forked from tommyilpazzo/ApexClassDocHeader.apex
SFDC: Apex class documentation header template
/**
* Class description
*
* @author FirstName LastName
* @version 1.0
* @description Class description
* @testedIn ClassNameTest
* @uses Class1, Class2
* @code
* @history
@enreeco
enreeco / chrome-i18n.js
Created March 1, 2016 15:06 — forked from eligrey/chrome-i18n.js
Easy i18n for your Chrome extensions and apps' DOM.
/* Chrome DOM i18n: Easy i18n for your Chrome extensions and apps' DOM.
* 2011-06-22
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
/*jslint laxbreak: true, strict: true*/
/*global self, chrome, document*/
@enreeco
enreeco / !Queueable Apex
Created February 29, 2016 08:57 — forked from scottbcovert/!Queueable Apex
Gist of Centralized Async Handling via Queueable Apex; for accompanying presentation see http://scottbcovert.github.io/queueable-apex NOTE: The following source alone will not compile as it is one piece of a larger Force.com development framework available at https://github.com/scottbcovert/Centralized-Salesforce-Dev-Framework
Gist of Centralized Async Handling via Queueable Apex
For accompanying presentation see http://scottbcovert.github.io/queueable-apex
NOTE: The following source alone will not compile as it is one piece of a larger Force.com development framework available at https://github.com/scottbcovert/Centralized-Salesforce-Dev-Framework

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@enreeco
enreeco / angularjs table
Created September 29, 2014 16:24
AngularJS fully functional table
<html>
<head>
<style>
.active-link{
font-weight: bold;
color: blue;
cursor: pointer;
}
</style>