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 | |
| $input = array_pop(explode('/', $input)); | |
| $jobNum = array_shift(explode('_', $input)); | |
| return $jobNum; |
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 | |
| // Silex Style Controllers | |
| class App extends \Slim\Slim | |
| { | |
| public function mount($controller) | |
| { | |
| if (! is_object($controller)) { | |
| throw new \InvalidArgumentException('Controller must be an object.'); | |
| } |
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 | |
| use \Phpmig\Pimple\Pimple, | |
| \Illuminate\Database\Capsule\Manager as Capsule; | |
| $container = new Pimple(); | |
| $container['db'] = $container->share(function() { | |
| return new PDO('dblib:dbname=testdb;host=127.0.0.1','username','passwd'); | |
| }); |
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 | |
| /** | |
| * Do the migration | |
| */ | |
| public function up() | |
| { | |
| /* @var \Illuminate\Database\Schema\Blueprint $table */ | |
| $this->get('schema')->create('posts', function ($table) | |
| { |
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
| 'use strict'; | |
| var generateAngularTemplate = require('./../utils/generate-angular-template'); | |
| // Adds html tempalate in $templateCache and writes file to destFile | |
| // | |
| // $templateCache key is the filepath passed in as srcFile: | |
| // options.prependPrefix + options.srcFile.replace(stripPrefix, '') | |
| // | |
| // grunt.initConfig({ |
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 | |
| $app = new \Slim\Slim(); | |
| $app->group('/about', function () use() { | |
| $app->get('/us', function () { | |
| echo "You can access me via /about/us" | |
| }); | |
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
| // Mocked Service | |
| angular.module('mock.users', []). | |
| factory('UserService', function($q) { | |
| var userService = {}; | |
| userService.get = function() { | |
| return { | |
| id: 8888, | |
| name: "test user" | |
| } |
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
| { | |
| "name": "test", | |
| "version": "0.1.0", | |
| "private": true, | |
| "ignore": [ | |
| "**/.*", | |
| "node_modules", | |
| "bower_components", | |
| "test", | |
| "tests" |
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
| include: | |
| - php.apc | |
| - php.curl | |
| - php.fpm | |
| - php.gd | |
| - php.imagick | |
| - php.imap | |
| - php.ldap | |
| - php.mbstring | |
| - php.mcrypt |