Skip to content

Instantly share code, notes, and snippets.

View chartjes's full-sized avatar

Chris Hartjes chartjes

View GitHub Profile
protected function _initTranslator()
{
$translate = new \Zend_Translate('array', APPLICATION_PATH . '/../languages/en.php');
\Zend_Registry::set('Zend_Translate', $translate);
\Zend_Validate_Abstract::setDefaultTranslator($translate);
}

Keybase proof

I hereby claim:

  • I am chartjes on github.
  • I am chartjes (https://keybase.io/chartjes) on keybase.
  • I have a public key whose fingerprint is 638F A6ED 3726 E4C3 F8BB 7FDB 5EEE FF45 22D3 1D96

To claim this, I am signing this object:

I have an app that is using 5 different packages that are available via our own local Satis repo.
I have one main repo that has a composer.json file that installs the 5 packages. However, I need
to keep working on code in those individual packages (which are now installed in <main repo>/vendor and
grouped under company name:
ie
vendor/company/package-1/
vendor/company/package-2/
"
" MAIN CUSTOMIZATION FILE
"
set nocompatible
filetype off
call pathogen#infect()
syntax on
filetype plugin indent on
<?php
namespace OpenCFP\Entity\Mapper;
use Spot\Mapper;
class User extends Mapper
{
/**
* Return an array that grabs info from the User and Speaker entities
Notice: Trying to get property of non-object in /var/www/vhosts/truenorthphp.ca/github/opencfp/vendor/vlucas/spot2/lib/Spot/Relation/HasOne.php on line 70
[production]
// whole bunch of stuff here
[development : production]
// override things in production
@chartjes
chartjes / gist:541589ce895a9a5991ec
Created October 27, 2014 18:50
Current TES list
4 Polluted Delta
2 Misty Rainforest
1 Bloodstained Mire
2 Underground Sea
2 Volcanic Island
1 Swamp
1 Island
3 Chrome Mox
4 Lotus Petal
@chartjes
chartjes / gist:047f947734f8ca5fee0b
Created November 17, 2014 17:27
Results from GPNJ
Round 1 - Drew, went to time vs. a Bant Stasis Depths combo deck
Round 2 - Lost to UWR control
Round 3 - Lost to Death and Taxes
Round 4 - Lost to BUG Delver
Round 5 - Lost to BUG Delver
Round 6 - Lost to Esper Deathblade
Round 7 - Bye (dead last in pod)
Round 8 - Win (opponent dropped)
Round 9 - Draw, went to time vs. UWR delver
@chartjes
chartjes / gist:3b4c4814a5a0ec8f4904
Last active August 29, 2015 14:10
Fun with PHP Arrays
// Given the following code
function foo(array $bar) {
$barCount = count($bar);
for ($i = 0; $i < $barCount; $i++) {
$baz = explode(Validator::DELIMITER, $bar[$i]);
unset($bar[$i]);
foreach ($bar as $val) {