This file contains hidden or 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
String csv = 'Id,Name\n'; | |
for ( List<Account> accts : [ SELECT id, name FROM Account LIMIT 10 ] ) { | |
for ( Account acct : accts ) { | |
csv += acct.id + ',' + acct.name.escapeCsv() + '\n'; | |
} | |
} | |
ContentVersion file = new ContentVersion( | |
title = 'accounts.csv', | |
versionData = Blob.valueOf( csv ), |
This file contains hidden or 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
trigger OpportunityTrigger on Opportunity ( | |
before insert, after insert, | |
before update, after update, | |
before delete, after delete) { | |
//trigger body | |
new OpportunityTriggerHandler().run(); | |
} |
This file contains hidden or 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
http://www.schneems.com/post/25098659429/databases-rails-week-1-introduction/ | |
http://www.schneems.com/post/25503708759/databases-rails-week-2-modeling-relationships-and/ | |
http://www.schneems.com/post/25925957093/databases-rails-week-3-pure-ruby-views/ | |
http://www.schneems.com/post/26418738373/databases-rails-week-4-routing/ | |
http://www.schneems.com/post/27122707453/databases-rails-week-5-controllers/ | |
http://www.schneems.com/post/27558427060/databases-rails-week-6-data-visualization-with/ | |
http://www.schneems.com/post/28125445535/active-record-deep-dive/ | |
http://www.schneems.com/post/28908007902/databases-rails-week-8/ | |
http://www.schneems.com/post/29620668076/database-rails-week-9/ |
This file contains hidden or 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 Coding Standard | |
Introduction | |
------------- | |
Apex is a strongly-typed, object-oriented, proprietary programming language for the Force.com platform. | |
It lets you execute flow and transaction control statements in conjunction with calls to the Force.com API. | |
Apex borrows it's syntax from Java, and functions like a database stored procedure. | |
To learn more about Apex, read the developer documentation on the Force.com developer site. | |
[http://www.salesforce.com/us/developer/docs/apexcode/index.htm] |
This file contains hidden or 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
/* | |
* Static methods to extend standard SOQL query capabilities. | |
* | |
* @author: Luke | |
* @date: Dec 2012 | |
*/ | |
public class QueryUtil { | |
public class QueryException extends Exception {} |
This file contains hidden or 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
declare @column varchar(max) | |
declare @sql nvarchar(max) | |
declare @tablename varchar(max) | |
declare tables cursor for select column_name from INFORMATION_SCHEMA.columns where table_name ='Salesforce_Task_Backup_12102014' and column_name!='ID' | |
Open tables | |
Fetch Next FROM tables | |
into @column | |
--set @column='userguid' | |
--set @value='5000010431119001' |
This file contains hidden or 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
Integer classLines = 0; | |
Integer triggerLines = 0; | |
for(ApexClass a : [Select Body From ApexClass]){ | |
List<String> lines = a.Body.split('\n'); | |
classLines += lines.size(); | |
} | |
for(ApexTrigger a : [Select Body From ApexTrigger]){ | |
List<String> lines = a.Body.split('\n'); |
This file contains hidden or 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 sidebar="false" docType="html-5.0" controller="VSDashBoard_Con"> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"/> | |
<script> | |
function goToDetailPage(recId){ | |
if(typeof sforce != 'undefined' && typeof sforce.one != 'undefined'){ | |
sforce.one.navigateToSObject(recId); | |
} | |
else{ | |
window.location.href = '/'+recId; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<!-- Latest compiled and minified CSS --> |
This file contains hidden or 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
$ defaults write com.apple.screencapture location /Users/name/dropbox/photos/screenshots |
NewerOlder