Skip to content

Instantly share code, notes, and snippets.

<aura:component >
<ltng:require styles="/resource/slds102/assets/styles/salesforce-lightning-design-system-ltng.css"/>
<div class="slds">
<div class="slds-grid slds-wrap slds-grid--vertical-stretch">
<div class="slds-col slds-col-rule--bottom slds-size--1-of-1" style="height:300px;">
Column 1
</div>
<div class="slds-col slds-col-rule--right slds-size--2-of-3" style="height:600px;">
@logontokartik
logontokartik / ContactListViewRemoteObjects.page
Created July 30, 2015 10:37
Single Page Contact View using Visualforce Remote Objects
<!---
Credits go to Karanraj for originally building this single page app..
Make sure you have Image_URL__c custom field on the Contact Object.
I have used Handlebars to render each contact as a Card.
-->
<apex:page showHeader="false" standardStylesheets="false">
<!-- Boostrap and jQuery file -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<apex:page controller="ImportMSProjectCon">
<head>
<meta charset="utf-8"></meta>
<title>Bulk Insert Mailing Lists</title>
<!-- Stylesheets-->
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<!-- <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" /> -->
<!-- JS Libraries for JQuery and BootStrap-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
public with sharing class MSProject {
public class TimephasedData {
public String Type;
public String UID;
public String Start;
public String Finish;
public String Unit;
public String Value;
}
@logontokartik
logontokartik / SearchAccountsCon
Last active January 4, 2016 06:28
Controller for Searching Records
public class SearchAccountsCon{
@RemoteAction
public static List<ObjectWrapper> searchAccounts(String searchString, String objectName){
List<ObjectWrapper> aWrapper = new List<ObjectWrapper>();
List<SObject> records = new List<SObject>();
// Dynamically build the soql