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
################################### | |
## Social Network Analysis ## | |
## Module 1 Assignment ## | |
## Author: mhorine ## | |
################################### | |
# Load the igraph library | |
library(igraph) | |
# Load the edgelist and examine the data |
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
<html> | |
<head> | |
<!--Load the AJAX API--> | |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
<script type="text/javascript"> | |
// Load the Visualization API and the material barchart package. | |
google.charts.load('current', {'packages':['corechart', 'bar']}); | |
// Set a callback to run when the Google Visualization API is loaded. |
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
/************************************************** | |
/ Button: Email Affiliated Contacts / | |
/ Author: Matt Horine / | |
/ Client: Step Up to Serve / | |
/ Date: 28 January 2015 / | |
/ / | |
/ Description: Button on Affiliated Contacts / | |
/ related list to allow selection and email of / | |
/ affiliated contacts from the Account Page in / | |
/ the same way the Send an Email button allows / |
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
@isTest | |
private class DuplicateTriggerTest { | |
@isTest static void testDuplicateTrigger() { | |
/* This test class creates 200 test contacts, creates a second list which is copy | |
copy of the first, and then inserts both into the database. The second insert | |
uses Database calls to get the IDs of the inserted contacts (which should all | |
be duplicates). Then we make a SOQL call to the database to get the duplicate | |
flag for those contacts and make sure it was set to true prior to insert. |
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 DuplicateCheckTrigger on Contact (before insert) { | |
/* For this example, we will search by name and a unique ID prior | |
to a new contact being inserted. If a contact is found, the | |
duplicate flag is set and the contact is then inserted into the | |
database. | |
*/ | |
/* For before insert triggers, you are intercepting a group of contact | |
records to be inserted and then modifying the data. At the end of | |
the trigger all records in trigger.new are inserted into the database, |