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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| //dynamic date set to today + 30 days | |
| %%[ VAR @expire, @current SET @current = NOW() SET @expire = DateAdd(@current, "30", "D") ]%% | |
| //to show the expiration date | |
| %%=format(@expire, "MM/dd/yyyy")=%% |
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
| // Dave's AMPScript cheat sheet. | |
| // AMPScript is ExactTarget (SFDC Marketing Cloud)'s server side scripting language. | |
| // It's a bit of a pig, plus the docs are numerous and the examples aren't contextual. | |
| // This assumes you don't need hand holding, and just need to get your head around it. | |
| // It's also my reference for the snippets I use all the time (I'm a formatting stickler). | |
| // These examples come from microsites I've written - adapt 'em for use elsewhere. | |
| // Multi line AMPScript %%[contained within delimiters]%% gets interpreted on the server. |
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
| # -*- coding: utf-8 -*- | |
| import os | |
| import StringIO | |
| import hashlib | |
| try: | |
| from boto.s3.connection import S3Connection | |
| from boto.s3.key import Key | |
| except ImportError: | |
| raise ImproperlyConfigured, "Could not load Boto's S3 bindings." |