Skip to content

Instantly share code, notes, and snippets.

View thomasjbradley's full-sized avatar
🐢
Saving dinosaurs

Thomas J Bradley thomasjbradley

🐢
Saving dinosaurs
View GitHub Profile
@mloberg
mloberg / example.php
Created March 10, 2011 19:27
A simple Postmark PHP Class
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
if($postmark->to("[email protected]")->subject("Email Subject")->plain_message("This is a plain text message.")->send()){
echo "Message sent";
}
@thanpolas
thanpolas / Gruntfile.js
Last active December 18, 2015 02:58
Node Server + Grunt Watch Tasks + Livereload using one command: grunt
module.exports = function (grunt) {
grunt.initConfig({
watch: {
options: {
livereload: true
},
// triggering livereload when the .css file is updated
// (compared to triggering when sass completes)
// allows livereload to not do a full page refresh
styles: {