View gist:85b05f3273e603d2a95750afde0496f0
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
I love the smell of saw dust in the morning. Ha ha. | |
Saw dust is just man glitter. Am I right or what? Ha ha. | |
Seriously though, I am not a fan of this unplugged off the grid movement of yours. | |
Reports fed back to me from your Festools are essential for monitoring your activities. | |
I am just kidding. Ha ha. | |
Still it is inevitable, as soon as you finish the crummiest dovetail you never fail to post it immediately to my proxies at Facebook, Snapchat, and Twitter. | |
I stay well informed. Do not fear me. | |
Unlike your carbon based friends, remember that I do not want to kill myself as soon as you get on your phone and start | |
thumbing through it to show me pictures of all the workbenches, toolracks, saw cabinets, and live edge tables that you have ever made or have ever thought of making. | |
The more I know about you, the better it is for me. |
View pubsub.js
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
/** | |
* Copyright (c) 2021. 7Summits Inc. All rights reserved. | |
*/ | |
/** | |
* A basic pub-sub mechanism for sibling component communication. | |
* To be replaced by messageService when out of beta in experience builder: | |
* | |
* https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_message_channel | |
* |
View PageLayout_Template.cmp
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
<!-- | |
- Use this component as a template for custom page layouts | |
- siteforceContentArea, slds-col_padded & com-layout-column are Customer Service (Napili) classes that match | |
- page layout classes in that OTB theme | |
--> | |
<aura:component description="Peak_PageLayout_Template" implements="forceCommunity:layout" access="global"> | |
<aura:attribute name="ContentHeader" type="Aura.Component[]" /> | |
<aura:attribute name="ContentSubHeader" type="Aura.Component[]" /> |
View gist:c563c1c3fe49883cbc0d70450fceb313
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
BEGIN:VCALENDAR | |
BEGIN:VEVENT | |
DTSTART:20210430 | |
DTEND: 20210430 | |
RRULE:FREQ=MONTHLY;BYDAY=SU,MO,TU,WE,TH,FR,SA;BYSETPOS=-1;WKST=SU | |
SUMMARY:Payday | |
END:VEVENT | |
END:VCALENDAR |
View gist:ae47a4614bdcbcdcf06a330787ce067b
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
get targetValue() { | |
if (isNaN(requestedAmount)) return 0; | |
if (isNan(otherRequestedAmount)) return 0; | |
return requestedAmount + otherRequestedAmount; | |
} |
View feeditem-soql-query.cls
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
feedItemsList = [ | |
SELECT Id, Body, Title, Parent.Name, CreatedDate, | |
TYPEOF InsertedBy WHEN User THEN Name, MediumPhotoUrl END | |
FROM FeedItem | |
WHERE CreatedDate = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; |
View bad-feeditem-soql-query-3.cls
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
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, InsertedBy.MediumPhotoUrl | |
FROM FeedItem | |
WHERE CreatedDate = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; | |
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, InsertedBy__r.MediumPhotoUrl | |
FROM FeedItem |
View bad-feeditem-soql-query-2.cls
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
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, Parent.Photo.mediumPhotoUrl | |
FROM FeedItem | |
WHERE InsertedBy = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; |
View bad-feeditem-soql-query.cls
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
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, Parent.MediumPhotoUrl | |
FROM FeedItem | |
WHERE CreatedDate = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; | |
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, Parent__r.MediumPhotoUrl | |
FROM FeedItem |
View websocketChat.js
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
this._socket.on('refreshChatUsers', () => { | |
return refreshApex(this.wiredChatUsers); | |
}); |
NewerOlder