This file contains hidden or 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
PROJ = $(shell basename `pwd`) | |
# Given a running fig container with the name "app" that exposes port 80, run the following task | |
# ``` | |
# $ make ngrok-secure USER=username PASS=password | |
# ``` | |
ngrok-secure: export PORT=$(shell fig port app 80 | sed 's/^.*:\([0-9][0-9]*\)$\/\1/') | |
ngrok-secure: | |
ngrok -httpauth=$(USER):$(PASS) -subdomain=$(PROJ)-`whoami` `boot2docker ip`:$(PORT) |
This file contains hidden or 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 | |
namespace Will; | |
/** | |
* This class replaces if statement that throws exceptions with nice | |
* readable (DSL) code | |
*/ | |
class Throw { |
This file contains hidden or 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
/** | |
* testing tasks (using karma to test in the browser). Requires a karma.conf.js for full config | |
* single-run testing | |
* continuous testing | |
*/ | |
/** base deps, but you may need more specifically for your application */ | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var path = require('path'); |
This file contains hidden or 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
define(function(){ | |
var spec = { | |
some_resource: [], | |
app: { | |
module: 'module_a', | |
ready: { | |
init: [{ $ref: 'views_controllers'}] | |
} | |
}, |