Skip to content

Instantly share code, notes, and snippets.

View locohost's full-sized avatar

Mark Deibert locohost

View GitHub Profile
export async function sendMGEmail(to: string, subject: string, text: string, context: ActionAPIContext) {
const { MAILGUN_API_KEY, MAILGUN_SEND_KEY, MAILGUN_DOMAIN, MAILGUN_FROM } = context.locals.runtime.env;
const mailgun = new Mailgun(FormData);
const mg = mailgun.client({
username: "api", //MAILGUN_SEND_KEY as string,
key: MAILGUN_API_KEY as string,
//url: `https://api.mailgun.net`, // MAILGUN_API_URL as string,
});
console.log(`${where}: MAILGUN_API_KEY:`, MAILGUN_API_KEY);
console.log(`${where}: MAILGUN_DOMAIN:`, MAILGUN_DOMAIN);
@locohost
locohost / location.dart
Last active November 2, 2021 17:49
Flutter/Dart Location simple model example
import 'package:league_tracker/lm_track/feature/region/model/region_model.dart';
@immutable
class Location {
final String id;
final String shortName;
final String description;
final String phone;
final String email;
final String street1;
@locohost
locohost / 0_reuse_code.js
Created October 28, 2016 14:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console