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
/** | |
* [1] Will be fired when the Apex | |
* Method completes execution. | |
* | |
* [2] Will also hold the data returned | |
* by the Apex Method after it | |
* completes execution. | |
*/ | |
var searchTerm; | |
var newsFetchCompleted = function( res ) { |
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
<apex:page standardController="Account" extensions="NewsWidgetController" sidebar="false" showHeader="false" standardStylesheets="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" > | |
<html> | |
<head> | |
<title> | |
Google News | |
</title> | |
</head> | |
<body> | |
<div width="100%" style="text-align:center" > | |
<img src="{!$Resource.News_Loading}" id="loader"></img> |
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
// ==UserScript== | |
// @name Expand/Collapse nodes in ASIDE.IO | |
// @version 1.0 | |
// @description Perform Code Folding in ASIDE.IO (A cloud based Salesforce IDE) | |
// @author Shruti Sridharan | |
// @match https://www.aside.io/* | |
// @grant https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js | |
// @namespace https://greasyfork.org/users/56475 | |
// ==/UserScript== |
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
var formatDate = function() { | |
moment.locale( window.navigator.userLanguage || window.navigator.language ); | |
$( "[data-type='date']" ).each( | |
function() { | |
var currentDate = $( this ).html(); | |
if( currentDate !== '' ) { | |
var formatedDate = moment( currentDate ).format( 'L' ); | |
$( this ).html( formatedDate ); |
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
public class LeadKanbanController { | |
public static String LEAD_MOVED = '{0} was moved successfully to {1}'; | |
public List<Schema.PicklistEntry> leadStatuses { get; set; } | |
public Map<String, List<Lead>> allLeads { get; set; } | |
public class UpdateStatus { | |
public Boolean isSuccess; | |
public String message; | |
} |
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
<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 /> |
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
<apex:page 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>Transferring Data Between VF Pages</title> | |
<link type="text/css" href="https://www.lightningdesignsystem.com/assets/styles/slds.css" rel="stylesheet" /> |
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
<apex:page 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>Transferring Data Between VF Pages</title> | |
<link type="text/css" href="https://www.lightningdesignsystem.com/assets/styles/slds.css" rel="stylesheet" /> |
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
public class ProjectPortfolioController { | |
public List<Project__c> allProjects { get; set; } | |
public ProjectPortfolioController() { | |
allProjects = new List<Project__c>(); | |
fetchProjects(); | |
} | |
public void fetchProjects() { |
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
<apex:page controller="ProjectPortfolioController" sidebar="false" showHeader="false" standardStylesheets="false" applyHtmlTag="false" applyBodyTag="false" cache="false" expires="0" docType="html-5.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>Shruti's Portfolio</title> | |
<link rel="stylesheet" type="text/css" href="{!URLFOR($Resource.Pace,'flash.css')}" /> |