Skip to content

Instantly share code, notes, and snippets.

@stevesmename
stevesmename / gist:1c48c984f49168a0b06ab54bedff5fee
Created June 2, 2021 15:45
Salesforce Marketing Cloud App Developer | Avagate.com
My company Avagate is a software engineering group, specifically focused on building solutions around email marketing and Salesforce Marketing Cloud. We aim to simplify our clients lives and our own lives with tools that assist with account migrations, implementations, data integration, analytics, campaign management and more.
This is a brief description for a job that’s extremely technical, but finding the right person for this role is a huge leap for us as we begin to productize. I would love to find someone interested that’s involved with or recommended by the Email Geeks community.
Must have some expertise:
+ Salesforce MC skills: SSJS - AMPScript/GTL - SOAP & REST API
+ Developer skills: Python - NodeJS - Javascript - Angular
+ Data skills: JSON - Flat Files - GPG/PGP - T-SQL, GCP BigQuery
+ Tools: Postman, Terminal/CLI, RegEx, GIT, Crontab
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn.schemas-microsoft-com:office"
lang="en" xml:lang="en">
<head>
...
<!-- [if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>72</o:PixelsPerInch>
@stevesmename
stevesmename / yourmodule.tokens.inc
Created December 17, 2014 22:02
[file:description] token working with 'Download link' format
<?php
/**
* @file
* Token integration for the file_entity module.
*/
/**
* Implements hook_token_info().
*/
<html>
<!--
Hi Ryan! This document is to help with the Code Academy of HTML.
This block of text is ignored because I used comment tags around it.
The <html> we set above is to declare we want to write a web page.
At the very end of the document we should have a </html>, the </ declares
the closing of a tag. Anytime a tag is opened (<tag>) then it must be
closed (</tag>).
-->
<?php
$int = pow(2, 62);
$prime = $int - 1;
print $prime;
@stevesmename
stevesmename / uc_faxthruemail.module
Created June 19, 2013 07:32
Sending pdf as attachment via mimemail (Drupal 6.x)
/**
* Fax an invoice.
*
* @see uc_faxthruemail_action_fax_invoice_form()
*/
function uc_faxthruemail_action_fax_invoice($order, $settings) {
// Token replacements for the subject and body
$settings['replacements'] = array(
'global' => NULL,
'order' => $order,
@stevesmename
stevesmename / testing.php
Created January 13, 2013 16:11
phpunit and selenium test not working.
<?php
class TestLogin extends PHPUnit_Extensions_Selenium2TestCase {
public function setUp() {
$this->setHost('localhost');
$this->setPort(4444);
$this->setBrowser('firefox');
$this->setBrowseUrl('');
}
function some_extensive_process () {
// ... your intense code here
if (function_exists('newrelic_ignore_apdex')) {
newrelic_ignore_apdex(TRUE);
}
}
@stevesmename
stevesmename / gist:3998658
Created November 2, 2012 04:06
AAAMETRICS - AAA Arizona Main
<script type="text/javascript">
<!--//--><![CDATA[//><!--
AAAMETRICS = function() { return {"club":"aaa-az","partner":"main",svars:{"partner":"main"}} }();(function() {var ss = document.createElement("script");ss.type = "text/javascript";ss.async = true;ss.src = ('https:'== document.location.protocol ? 'https://' : 'http://') + 'metrics.go.aaa.com/ss/ss.js';var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ss, s);})();
//--><!]]>
</script>
@stevesmename
stevesmename / nationalsurvey.htm
Created October 1, 2012 16:31
TQS4 Survey onClick
<html>
<head>
<title>AAA Website Survey</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body background="images/bbg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-Include javascript for counting invitation. If page not hosted on aaa.com, change path to http://www.aaa.com/configuration/CountSurvey.js-->
<script language=javascript src='http://www.aaa.com/configuration/CountSurvey.js'></script>
<!-- Start of content section. -->