This file contains 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
// Combine all merge_var values - these values are used to send multipul messages | |
// with customizations to the Mandrill templace based on the merge_var values and | |
// the matching *|TAGS|* | |
$mandrill_params['message']['merge_vars'] = empty($content['merge_vars']) ? $mandrill_params['message']['merge_vars'] : array_merge($content['merge_vars'], $mandrill_params['message']['merge_vars']); | |
$mandrill_params['message']['global_merge_vars'] = $global_merge_vars; | |
$mandrill_params['message']['to'] = empty($content['to']) ? $mandrill_params['message']['to'] : array_merge($content['to'], $mandrill_params['message']['to']); |
This file contains 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
Issues: | |
-> The ability to log sent messages (prevent sending the same message twice) - success or failure: tech reason or bounced email address | |
-> The ability to query what messages were sent | |
-> The ability to resend messages / send followup (apology) messages | |
-> Support different DS systems sending transactional messages (Drupal, Ruby, etc) - end point? | |
-> track number of messages sent to an email address | |
=> trigger digest format | |
=> throttle the timing of sent messages | |
=> how many are in the queue, to be sent vs how many have been sent recently (triggers for format) |
This file contains 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
<!-- /out/index.html --> | |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Go Wasm</title> | |
</head> | |
<body> | |
<script src="wasm_exec.js"></script> |
This file contains 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
<!-- /out/index.html --> | |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Go Wasm</title> | |
</head> | |
<body> | |
<script src="wasm_exec.js"></script> |
This file contains 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
// +build js,wasm | |
// /go/main.go | |
// GOOS=js GOARCH=wasm go build -o out/main.wasm go/main.go | |
package main | |
import ( | |
"fmt" | |
) |
This file contains 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
// webServer.go | |
package main | |
import ( | |
"log" | |
"net/http" | |
"strings" | |
) |
This file contains 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
// +build js,wasm | |
package main | |
import ( | |
"syscall/js" | |
"fmt" | |
) | |
func main() { |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>SoulCycle Go Wasm</title> | |
<script src="wasm_exec.js"></script> | |
<script> | |
if (WebAssembly) { |
This file contains 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
{ | |
"notification_feed_id": "8d433c5652047ea1fdde60939c1afb8c", | |
"notification_filters_enabled": false, | |
"notification_filters_landing_on": "all", | |
"filters": [], | |
"groups": [ | |
{ | |
"heading": null, | |
"notifications": [ | |
{ |