I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
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 | |
| // test data | |
| class Foo { | |
| private $a; | |
| private $b; | |
| function __construct($a, $b) | |
| { |
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
| /tests export-ignore | |
| /stubs export-ignore | |
| /.gitattributes export-ignore | |
| /.gitignore export-ignore | |
| /.scrutinizer.yml export-ignore | |
| /.travis.yml export-ignore | |
| /phpunit.xml export-ignore | |
| /changelog.md export-ignore | |
| /readme.md export-ignore |
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
| git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
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 | |
| require_once "vendor/autoload.php"; | |
| use Symfony\Component\Console\Application; | |
| use Illuminate\Database\Console\Migrations; | |
| use Pimple\Container; | |
| $container = new Container(); | |
| $container['migration-table'] = 'migration'; |
- Table of contents
- General information
- Terms
- General structure of a test
- WordPress-specific assertions and test functions
- enqueues
- creating posts
- creating terms
- attaching images
- ?
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
| # Set the base image to stable version of node | |
| FROM node:0.12.2 | |
| # Install nodemon | |
| RUN npm install -g nodemon | |
| # Provides cached layer for node_modules | |
| COPY package.json /tmp/package.json | |
| RUN cd /tmp && npm install --production | |
| RUN mkdir -p /app && cp -a /tmp/node_modules /app/ |
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
| Regex search and replace for form helpers as follows: | |
| Search: | |
| \{\{ (Form\:\:.+) \}\} | |
| Replace: | |
| {!! $1 !!} |
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 | |
| $finder = Symfony\Component\Finder\Finder::create() | |
| ->notPath('bootstrap/cache') | |
| ->notPath('storage') | |
| ->notPath('vendor') | |
| ->in(__DIR__) | |
| ->name('*.php') | |
| ->ignoreDotFiles(true) | |
| ->ignoreVCS(true); |