Skip to content

Instantly share code, notes, and snippets.

View cgsmith's full-sized avatar
👋
Available to work on your projects!

Chris Smith cgsmith

👋
Available to work on your projects!
View GitHub Profile
<?php
$valveOpen = true;
$valveClose = true;
if ($valveOpen && $valveClose) {
$light = 1;
}elseif ($valveOpen && !$valveClose){
$light = 2;
}else{
$light = 3;
@cgsmith
cgsmith / invoice-to-pdf.xml
Created April 9, 2013 23:31
Invoice to pdf error.
<!--
Copyright 2012 CGSmith.net, LLC (http://www.cgsmith.net/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@cgsmith
cgsmith / emailclient.php
Created March 15, 2012 16:50
Gearman - Mass email PDF's
<?php
# create our client object
$gmclient= new GearmanClient();
# add the default server (localhost)
$gmclient->addServer();
# run email client in the background
$arr = array($_GET['id'],$_GET['msg']);
$data = serialize($arr); //serialize to send data