Skip to content

Instantly share code, notes, and snippets.

View binaryLady's full-sized avatar
✌️

Sonia Cook-Broen binaryLady

✌️
View GitHub Profile
{
"W": 512,
"H": 512,
"show_info_on_ui": true,
"tiling": false,
"restore_faces": false,
"seed_resize_from_w": 0,
"seed_resize_from_h": 0,
"seed": -1,
"sampler": "Euler a",
@binaryLady
binaryLady / FetchDataApexController.cls
Created October 12, 2017 12:45
Apex class that returns a handled error for Lightning Components
public with sharing class FetchDataApexController {
@AuraEnabled
public static List<sObject> getDataFromServer(List<String> acct){
List<sObject> sObjList = new List<sObject>();
String query = 'SELECT ';
query = query + 'Name, Id, customField__c FROM customObject__c ';
query = query + 'WHERE Id IN: acct ';
query = query + ' ORDER BY CreatedOn__c DESC';
@binaryLady
binaryLady / DynamicInputField.cmp
Last active August 28, 2017 14:31
Dynamic Input Field Lightning Component
<aura:component >
<aura:attribute name="name" type="String" default=""/>
<aura:attribute name="dynamicSetting" type="String" default="" />
{!v.body}
</aura:component>