Skip to content

Instantly share code, notes, and snippets.

Derrek Harrison dsharrison

Block or report user

Report or block dsharrison

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dsharrison /
Last active Dec 13, 2015
Controller and visualforce page to demonstrate missing records with UserRecordAccess query.
<apex:page controller="UserRecordAccessDebugCtrl" showHeader="true" sidebar="true">
Load this page with a record in the 'id parameter as users with varying record access
<br />
<apex:selectList value="{!userId}" size="1">
<apex:selectOptions value="{!userOptions}" />
<apex:actionSupport event="onchange" rerender="debug" />
dsharrison / lightningInputRepro.cmp
Last active Oct 9, 2016
A reduced test case for the issues with <lightning:input /> bindings
View lightningInputRepro.cmp
<aura:component implements="force:appHostable">
<!-- public attributes -->
<aura:attribute name="myObj" type="Account" default="{Name: '', Type: ''}" access="PUBLIC" />
<!-- body markup -->
<c:lightningInputReproFields record="{!v.myObj}" />
<lightning:button label="Update Object" onclick="{!c.updateObj}" />
<lightning:button label="Update Name" onclick="{!c.updateName}" />
dsharrison / LSTestButton.cmp
Created Nov 30, 2016
Reduced test case for locker service dynamic component DOM access.
View LSTestButton.cmp
<aura:component implements="forceCommunity:availableForAllPageTypes" access="GLOBAL">
<!-- public attributes -->
<aura:attribute name="childCmp" type="Aura.Component" access="PUBLIC"/>
<!-- component event handlers -->
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<!-- markup -->
<div aura:id="view">
<apex:page controller="KGRenewal.ECommerceCartController" showHeader="true" sidebar="true">
<aura:application extends="ltng:outApp" >
<aura:dependency resource="c:recordViewRepro" />
dsharrison / DummyController.cls
Last active Dec 13, 2017
Reproduction for Proxy behavior moving from non-locker component to locker component
View DummyController.cls
public class DummyController {
public static Boolean getFalse() {
return false;
dsharrison / MyOverrideClass.cls
Last active Jan 23, 2018
Reproduction components for a Spring '18 issue with virtual classes and lightning
View MyOverrideClass.cls
public class MyOverrideClass extends MyVirtualClass {
public override String getName() {
return 'MyOverrideClass';
public override Object getObj() {
return 'Hello World';
dsharrison /
Created Feb 27, 2017
Transfer custom cookies in a community between Lightning and Visualforce with Locker Service enabled.
<apex:page showHeader="false" sidebar="false">
Replace <your_resource> with the name of the static resource with
your application files in it. This assumes that you are using a zipped static
resource with your javascript files in a 'js/' folder.
<apex:includeScript value="{!URLFOR($Resource.<your_resource>, '/js/transfer-session.js')}" />
You can’t perform that action at this time.