Skip to content

Instantly share code, notes, and snippets.

View chrispappas's full-sized avatar
🧑‍🏭
Lead Dev @ AgDealer.com

Chris Pappas chrispappas

🧑‍🏭
Lead Dev @ AgDealer.com
View GitHub Profile
@flatlinediver
flatlinediver / mailgun.js
Last active March 10, 2021 13:37
Form handler using Mailgun and Netlify Functions
const { MAILGUN_API_KEY: apiKey, DOMAIN: domain, RECEIVER_MAIL: receiver_mail } = process.env
const mailgun = require('mailgun-js')({ apiKey, domain })
exports.handler = function(event, context, callback) {
if(event.httpMethod!='POST' || !event.body){
return callback(new Error('An error occurred!'))
}
const data = JSON.parse(event.body)
@stetic
stetic / google-cloud-storage-upload-download.php
Last active September 25, 2023 19:20
PHP Example for Google Storage Upload and Download with Google APIs Client Library for PHP
<?php
/*
* PHP Example for Google Storage Up- and Download
* with Google APIs Client Library for PHP:
* https://github.com/google/google-api-php-client
*/
include( "Google/Client.php" );
include( "Google/Service/Storage.php" );