- htttp://leviwheatcroft.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.implement({ | |
rendAr: function() { | |
var el = []; | |
this.each(function(item) { | |
if (typeOf(item) == 'element') el.push(item); | |
else if (typeOf(item) == 'string') el.push(new Element(item)); | |
else if (typeOf(item) == 'elements') item.each(function(i) {el.push(i);}); | |
else if (typeOf(item) == 'array') el[el.length - 1].adopt(item.rendAr()); | |
else if (typeOf(item) == 'object') el[el.length - 1].set(item); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------:A simple example:---------- | |
var template = [ | |
'ul.listClass#listId', [ | |
'li[text=Hello]', | |
'li[text=World]' | |
] | |
]; | |
var element = template.rendAr(); | |
$$('body').adopt(element); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Singleton | |
{ | |
protected static $instance = null; | |
protected function __construct() | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer