This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.
When code is no longer used, but can not be deleted from your org, add the @deprecated annotation to the File or Method Header.
| #!/bin/bash | |
| brew_command=/usr/local/bin/brew | |
| brew_cask_command="$brew_command cask" | |
| echo '#!/bin/bash' | |
| echo '' | |
| echo 'trap ctrl_c INT' | |
| echo 'function ctrl_c() {' | |
| echo 'echo "** Trapped CTRL-C"' |
This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.
When code is no longer used, but can not be deleted from your org, add the @deprecated annotation to the File or Method Header.
| <!-- | |
| Simple proof-of-concept to create a .ics calendar event with visualforce. | |
| Inspired by Natalie Regier @gnatrae | |
| This example uses url parameters to set the details of event. | |
| You could create a custom button that invokes this page, like: | |
| https://<your-salesforce-domain>/apex/vCalendarPage?start={!TEXT(Obj.StartDate__c)}&end={!TEXT(Obj.EndDate__c)}&subject=Event from Visualforce&description=This .ics event created with visualforce&location=The Cloud | |
| An example with literal values you can copy & paste in your browser: | |
| https://<your-salesforce-domain>/apex/vCalendarPage?start=20140524T140000&end=20140524T153000&subject=Event from Visualforce&description=This .ics event created with visualforce&location=The Cloud |
| Public with sharing virtual class RestClient { | |
| Public class RestClientException extends Exception {} | |
| /* | |
| * class variable creation - DO NOT EDIT | |
| */ | |
| Public Map<String,String> headers; | |
| Public String url; | |
| Public String method; |
| # -*- coding: utf-8 -*- | |
| """ | |
| Go to Google Bookmarks: https://www.google.com/bookmarks/ | |
| On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en | |
| After downloading the html file, run this script on it to generate a KML. | |
| """ |