Skip to content

Instantly share code, notes, and snippets.

View tet3's full-sized avatar

Thomas Taylor tet3

  • Philadelphia, PA
  • X @tet3
View GitHub Profile
@tet3
tet3 / Contract.ActivateFormula
Created January 9, 2014 20:30
Formula, Text type, for Contract that shows a hyperlink that will Activate Contract in a new window if not yet Active, or shows unlinked word "Activated" if it is already Activated. Include in Contract List Views for 1-click Activation of contracts from the List View.
IF(NOT(ISPICKVAL(StatusCode,"Activated")),
HYPERLINK("/ctrc/contractactivation.jsp?retURL=%2F" & Id & "&id=" & Id, "Activate", "_blank"),
"Activated")
@tet3
tet3 / GitHubInstallerBookmarklet.js
Created November 6, 2013 16:17
GitHubInstallerBookmarklet.js
javascript:(function(){
var isApex = false;
var sourceLangs = document.getElementsByClassName('lang');
for (var i = 0; i < sourceLangs.length; ++i) {
var l = sourceLangs[i];
if(l.innerHTML == 'Apex') {
isApex = true;
// alert('This is an Apex repo');
}
}