Skip to content

Instantly share code, notes, and snippets.

View arenowebdev's full-sized avatar

David Mosher arenowebdev

View GitHub Profile
@martinbean
martinbean / pre-commit
Last active December 19, 2023 22:14
Pre-commit hook to detect if any .php files contain dd()
#!/usr/bin/php
<?php
$files = shell_exec('git diff-index --name-only --cached --diff-filter=ACMR HEAD | grep "\.php$"');
$files = explode("\n", trim($files));
$exitCode = 0;
foreach ($files as $file) {
if (empty($file)) {
@arenowebdev
arenowebdev / lineup.md
Last active August 6, 2017 11:05
Invalid Argument Exception Lineup

Second Week Linup

Quarterback Opp Att/Comp Yds TD INT FUM RUSH-YDS RUSH-TD
P. Manning DEN OAK Sun 4:25p
Running Backs Opp Yds TD FUM REC-YDS REC-TD
D. Martin TB NO Sun 1p
C.J. Anderson DEN OAK Sun 4:25p

New Dynamx Deployment Procedure

This document described the deployment procedure for New Dynamx.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

@JeffreyWay
JeffreyWay / PhotoApiTest.php
Created May 21, 2013 22:37
Testing APIs in Laravel. Thoughts?
<?php
class PhotoApiTest extends TestCase {
public function setUp()
{
parent::setUp();
Route::enableFilters();
@ziadoz
ziadoz / awesome-php.md
Last active May 10, 2024 15:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.