Skip to content

Instantly share code, notes, and snippets.

call me on my #!/bin/sh phone

Matthew Loberg mloberg

call me on my #!/bin/sh phone
Block or report user

Report or block mloberg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View contact.php
// get a recaptcha api key at
$publickey = "";
$privatekey = "";
// see if the form has been submitted
// error checking
$errors = '';
mloberg / example.php
Created Mar 10, 2011
A simple Postmark PHP Class
View example.php
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
if($postmark->to("")->subject("Email Subject")->plain_message("This is a plain text message.")->send()){
echo "Message sent";
mloberg / index.php
Created Apr 18, 2011 Simple PHP Class
View index.php
$lastfm = new LastFm('your-api-key');
$params = array(
'user' => 'mloberg'
print_r($lastfm->call('user.getInfo', $params));
View watermark.html
<img src="watermark.php?watermark=watermark.png&src=test.jpg" />
mloberg / jquery.loader.js
Created Jun 29, 2011
Simple jQuery Plugin Loader
View jquery.loader.js
$.load = function(options){
// check for something to load
if(options.src === undefined) return;
// load dependencies
if(options.deps !== undefined){
$.each(options.deps, function(key, value){
var type = value.split(".")[value.split(".").length - 1];
if(type === "js"){
mloberg / mysql.php
Created Aug 30, 2011
Simple PHP MySQL Class
View mysql.php
class Mysql{
static private $link = null;
static private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
mloberg / postmark.php
Created Sep 23, 2011
Postmark PHP Library
View postmark.php
* Send emails with Postmark (
* Author: Matthew Loberg
* Author Twitter: @mloberg
* Author Website:
mloberg / File.Upload.js
Created Nov 6, 2011
MooTools Ajax File Upload
View File.Upload.js
name: [File.Upload, Request.File]
description: Ajax file upload with MooTools.
license: MIT-style license
author: Matthew Loberg
requires: [Request]
provides: [File.Upload, Request.File]
credits: Based off of MooTools-Form-Upload ( by Arian Stolwijk
mloberg / Popcorn.SourceCode.js
Created Nov 14, 2011
Popcorn Source Code Plugin
View Popcorn.SourceCode.js
* Popcorn SourceCode Plugin v0.1
* Copyright 2011 Matthew Loberg (
* Licensed under the MIT license
* Description:
* Add source code pre/code element to the page.
* If Google Code Prettify <>
View aacinfo.rb
# Name: AACInfo
# Author: Matthew Loberg
# Author URL:
# Description:
# I couldn't get MP4Info to read the tags of my iTunes music files, so I created this little class.
# It uses faad to get the tag info, so make sure it's installed (brew install faad2)
require 'iconv'
class AACInfo
You can’t perform that action at this time.