Skip to content

Instantly share code, notes, and snippets.

View deezone's full-sized avatar

Darren "Dee" Lee deezone

  • New York City, New York, USA
View GitHub Profile
@deezone
deezone / gist:a86141b66b26decb37bd00466d4440e3
Created August 7, 2023 16:07
/in-app-notifications-feed
{
"notification_feed_id": "8d433c5652047ea1fdde60939c1afb8c",
"notification_filters_enabled": false,
"notification_filters_landing_on": "all",
"filters": [],
"groups": [
{
"heading": null,
"notifications": [
{
@deezone
deezone / index.html
Created May 19, 2020 11:56
WASM - DOM Access - index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SoulCycle Go Wasm</title>
<script src="wasm_exec.js"></script>
<script>
if (WebAssembly) {
@deezone
deezone / main.go
Created May 19, 2020 11:49
WASM - DOM Access - main.go
// +build js,wasm
package main
import (
"syscall/js"
"fmt"
)
func main() {
@deezone
deezone / webServer.go
Created May 19, 2020 11:44
WASM - Hello World - webServer.go
// webServer.go
package main
import (
"log"
"net/http"
"strings"
)
@deezone
deezone / main.go
Last active May 19, 2020 11:42
WASM - Hello World - main.go
// +build js,wasm
// /go/main.go
// GOOS=js GOARCH=wasm go build -o out/main.wasm go/main.go
package main
import (
"fmt"
)
@deezone
deezone / index.html
Created May 19, 2020 11:12
WASM - Hello World - index.html
<!-- /out/index.html -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Go Wasm</title>
</head>
<body>
<script src="wasm_exec.js"></script>
@deezone
deezone / index.html
Last active May 19, 2020 11:00
Wasm - Hello World via console
<!-- /out/index.html -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Go Wasm</title>
</head>
<body>
<script src="wasm_exec.js"></script>
@deezone
deezone / gist:7549707
Last active December 28, 2015 19:19
DS eMail System Thoughts
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)
// 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']);