Skip to content

Instantly share code, notes, and snippets.

View swatimarda's full-sized avatar

Swati Marda swatimarda

View GitHub Profile
@swatimarda
swatimarda / PagingSortingController.cls
Created April 11, 2018 20:55 — forked from brianmfear/PagingSortingController.cls
Lightning Paging and Sorting Demo
global class PagingSortingController {
@AuraEnabled global static Account[] getAccounts() {
return [SELECT Name, Industry, AnnualRevenue FROM Account LIMIT 1000];
}
}
@swatimarda
swatimarda / gist:26fa861ed11f1a14c40188a09529d548
Created January 31, 2018 22:25 — forked from nicocrm/gist:858086
SalesForce Apex CSV Parser
/**
* Used to read a delimited file.
*/
public class SSSCsvReader {
private String delim = ',';
// the input data
private String[] buffer;
public SSSCsvReader(String data){
this.buffer = data.split('\n');