Skip to content

Instantly share code, notes, and snippets.

View donniewa's full-sized avatar
🍷

Donald White donniewa

🍷
View GitHub Profile
@donniewa
donniewa / Example.ts
Last active March 15, 2016 21:27
The example I am trying to fix has to do with how the import statement is being interpreted by the TypeScript compiler.
/*
I am using Babel as my Transpiler. And loading my dependencies with SystemJS.
I cannot include eventemitter3 as a global path configuration for SystemJS either.
*/
// # Example 1
// ## Works in Browser, but fails in the compiler.
import EventEmitter3 from './lib/eventemitter3/index';
export class MyEmitter extends EventEmitter3 {}
# Also has a dependency on Underscore JS
app.service 'resourceService', ['$resource', '$rootScope', '$q', ($resource, $rootScope, $q)->
$rootScope.resources = {}
resourceService =
newResource : (tag, url, paramDefaults = {}, actions = {}, options = {})->
if !$rootScope.resources[tag]
actions = _.extend actions,
update :
method : 'PUT'
@donniewa
donniewa / Error.log
Created May 14, 2014 04:45
SynthJS + Heroku
2014-05-14T04:27:17.114937+00:00 heroku[web.1]: Starting process with command `node web.js`
2014-05-14T04:27:19.248185+00:00 app[web.1]:
2014-05-14T04:27:19.248256+00:00 app[web.1]: module.js:340
2014-05-14T04:27:19.248761+00:00 app[web.1]: throw err;
2014-05-14T04:27:19.248768+00:00 app[web.1]: ^
2014-05-14T04:27:19.249925+00:00 app[web.1]: Error: Cannot find module '/app/back/back-app.js'
2014-05-14T04:27:19.249928+00:00 app[web.1]: at Function.Module._resolveFilename (module.js:338:15)
2014-05-14T04:27:19.249930+00:00 app[web.1]: at Function.require.resolve (module.js:384:19)
2014-05-14T04:27:19.249932+00:00 app[web.1]: at requireUncached (/app/lib/commands.js:61:14)
2014-05-14T04:27:19.249933+00:00 app[web.1]: at startServer (/app/lib/commands.js:81:15)
<?php
use \PHPUnit_Framework_TestCase as TestCase,
\PHPUnit_Framework_MockObject_MockBuilder as MockBuilder,
\PHPUnit_Framework_MockObject_MockObject as MockObject;
trait ZF2InterfaceInjectionTrait extends TestCase
{
/**
* Provides the default mocks for each of the interfaces defined in your test configuration