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
// Profiles to leave enabled | |
Set<String> excludedProfiles = new Set<String> { | |
'System Administrator', | |
'Integration System Administrator', | |
'AccessTSC Digital Profile', | |
'TriState Onboarding Team', | |
'Tristate Administrator' | |
}; | |
List<User> usersToUpdate = new List<User>(); |
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
global class DailyLeadProcessor implements Schedulable { | |
global void execute(SchedulableContext context) { | |
List<Lead> leads = [Select Id, LeadSource from Lead where LeadSource = null limit 200]; | |
for (Lead currentLead : leads) { | |
currentLead.LeadSource = 'Dreamforce'; | |
} | |
update leads; | |
} | |
} |
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
/** | |
* Extracts the translation values from a given CSS transformation. | |
* @param {string} transformValue The CSS transform string from which the translation values will be extracted (e.g. ‘translate3d(10px, 25px, 30px)’) | |
* @returns {object} translation values found in the given transform (e.g. { x: 10, y: 25, z: 30 }) | |
*/ | |
function getTranslation(transformValue) { | |
var matches = transformValue.match(/translate(3d)*\((\d+.?\d*(px)?),\s*(\d+.?\d*(px)?)(,\s*(\d+.?\d*(px)?))?\)/); | |
if (matches) { | |
return { | |
x: parseInt(matches[2]) || 0, |
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
downloadEmbededVideos(); | |
/** | |
* Finds and downloads all embeded Vimeo videos. | |
*/ | |
function downloadEmbededVideos() { | |
// Find Vimeo embed frame | |
var embedFrames = document.querySelectorAll('iframe[src*="player.vimeo.com"]'); | |
NewerOlder