Skip to content

Instantly share code, notes, and snippets.

Avatar
👩‍💻

Shruti Sridharan shrutis22

👩‍💻
View GitHub Profile
View ShowEmotions.cmp
<aura:component implements="lightning:availableForFlowScreens" access="global">
<aura:attribute name="toneAnalyzeResponse" type="string" access="global"></aura:attribute>
<aura:handler name="init" value="{!this}" action="{!c.showEmotion}"></aura:handler>
<aura:attribute name="gifUrl" type="string" access="private"></aura:attribute>
<aura:attribute name="detectedEmotion" type="string" access="private"></aura:attribute>
Detected Image: {!v.detectedEmotion}
<br/>
<img src="{!v.gifUrl}" />
</aura:component>
@shrutis22
shrutis22 / BitlySwagger.json
Created Feb 8, 2018
Swagger Specification for Bitly
View BitlySwagger.json
{
"swagger" : "2.0",
"info" : {
"description" : "Shorten URL API",
"version" : "1.0.0",
"title" : "Bit.ly"
},
"host" : "api-ssl.bitly.com",
"schemes" : [ "https" ],
"paths" : {
View AnnouncementsApp.js
/**
* This JavaScript file is created
* to initiate the CometD library,
* register CometD listeners, perform
* Channel Subscription and various
* other actions.
*
* @author Shruti Sridharan
* @since 27.11.17
* @revisions N/A
View Pushtopic.cls
PushTopic pt = new PushTopic();
pt.Name = 'Announcements';
pt.Query = 'SELECT Id, Name, Details__c FROM Announcement__c';
pt.ApiVersion = 41.0;
pt.NotifyForOperationCreate = true;
pt.NotifyForOperationUpdate = true;
pt.NotifyForFields = 'Referenced';
INSERT pt;
View Announcements.html
<apex:page standardStylesheets="false" showHeader="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Announcements</title>
<meta httpequiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@shrutis22
shrutis22 / LeadKanban.html
Last active Nov 23, 2017
UI for Lead Kanban page.
View LeadKanban.html
<apex:page controller="LeadKanbanController" standardStylesheets="false" showHeader="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" cache="false" expires="0">
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Lead Kanban</title>
<apex:slds />
View GDriveForSalesforce.html
<apex:page controller="GDriveForSalesforceCtrl" showHeader="true" sidebar="false" standardStylesheets="false" docType="html-5.0">
<apex:slds />
<style>
.slds-scope .slds-icon--xx-large {
height : 10rem;
width : 10rem;
}
.open-gdrive {
@shrutis22
shrutis22 / GDriveForSalesforceCtrl.cls
Created Nov 18, 2017
This class is created for using the Google Service APIs from Salesforce.
View GDriveForSalesforceCtrl.cls
/**
* This class is created for using
* the Google Service APIs from
* Salesforce.
*
* @author Shruti Sridharan
* @since 18.10.2017
* @revisions N/A
**/
public class GDriveForSalesforceCtrl {
@shrutis22
shrutis22 / IntelligentCaseRouter.cls
Created Sep 5, 2017
This class is created to assign the cases according to the context of the case issue. The context is found out with the help of Intent APIs.
View IntelligentCaseRouter.cls
/**
* This class is created to assign the
* cases according to the context of
* the case issue. The context is
* found out with the help of Intent
* APIs.
*
* @author Shruti Sridharan
* @since 05.09.2017
* @revisions N/A
@shrutis22
shrutis22 / CaseTrigger.cls
Created Sep 5, 2017
This trigger is created to run whenever a new case is created.
View CaseTrigger.cls
/**
* This trigger is created to run whenever
* a new case is created.
*
* @author Shruti Sridharan
* @since 05.09.2017
* @revisions N/A
**/
trigger CaseTrigger on Case ( after Insert ) {
IntelligentCaseRouter.assignOwners( Trigger.newMap.keyset() );