Skip to content

Instantly share code, notes, and snippets.

View leviwheatcroft's full-sized avatar

Levi Wheatcroft leviwheatcroft

  • Western Australia
View GitHub Profile
@leviwheatcroft
leviwheatcroft / whtacctgStationeryBrief
Last active August 29, 2015 14:01
whtacctgStationery
# Wheatcroft Accounting Stationery (whtacctgStationery)
## overview
Design a full set of print ready stationery for wheatcroft accounting. This includes letterhead, business cards, notepad, envelope, with comp slip.
Maximum budget price of $250 includes odesk fees.
Freelancers only please. Agency Contractors will be ignored (sorry).
# Wheatcroft Accounting Signage 1 (whtacctgSigns1)
## overview
Simple project to create artwork for sign. Logo fonts, colors, provided.
see the brief here:
https://www.dropbox.com/s/y5eilchuer5plur/brief.md.html
## assets
# Wheatcroft Accounting Coffee Cards (whtacctgCafe)
## overview
Create a promotional voucher to be issued by an accounting form for clients to redeem a free hot drink
See the full brief here:
## assets
@leviwheatcroft
leviwheatcroft / calwayBrandPack
Created May 26, 2014 07:30
Calway Logistics Brand Pack (calwayBrandPack)
# Calway Logistics Brand Pack (calwayBrandPack)
## overview
Calway Logistics has a partial logo design and visual style, but a full brand pack needs to be developed.
see the full brief here:
## assets
@leviwheatcroft
leviwheatcroft / modx pThumb raw data.php
Created May 29, 2014 06:41
working with phpthumbof in modx to get at the raw file contents and output it directly.
<?php
// after I figured this out I realised I could just use mun.ee
// you probably should too!
if (!$modx) die();
$debug = 0 || $_GET['debug'];
if ($debug) require_once($modx->config['base_path'] . 'assets/php/kint-0.9/Kint.class.php');
$options = array(
@leviwheatcroft
leviwheatcroft / modx external authentication.php
Created May 29, 2014 12:28
Single Sign On for modx external authentication super handy if you're authenticating with some other project and just need to assign privileges to a session.
<?php
//require 'modx/assets/kint/Kint.class.php';
require_once __DIR__ . '/modx/config.core.php';
require_once MODX_CORE_PATH.'model/modx/modx.class.php';
$modx = new modX();
$modx->initialize('web');
$modx->getService('error','error.modError', '', '');
$user = $modx->getObject('modUser', array('username' => 'levi'));
@leviwheatcroft
leviwheatcroft / php singleton pattern
Created May 30, 2014 23:29
just another singleton pattern
<?php
class Singleton
{
protected static $instance = null;
protected function __construct()
{
}
@leviwheatcroft
leviwheatcroft / 0_reuse_code.js
Created May 31, 2014 02:29
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
@leviwheatcroft
leviwheatcroft / KintErrorHandler.php
Created May 31, 2014 02:34
Debug like a pro with Kint! It seems odd to me that Kint doesn't do this automagically. Maybe it's also odd that I've been using Kint for months and only just figured out that this is what I should be doing.
define('__ROOT__',dirname(__FILE__));
require_once __ROOT__ . '/lib/kint/Kint.class.php';
function kint_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
Kint::dump(func_get_args());
Kint::trace();
die();
}
set_error_handler('kint_error_handler');
@leviwheatcroft
leviwheatcroft / snapfylaOverviewIG
Created June 15, 2014 07:30
snapfylaOverviewIG
# Snapfyla Overview Infographic (snapfylaOverviewIG)
## overview
create an infographic providing a simple high level overview of the services snapfy.la provides.
see the full brief here:
## about snapfy.la