Skip to content

Instantly share code, notes, and snippets.

View olivernybroe's full-sized avatar

Oliver Nybroe olivernybroe

View GitHub Profile
@gilbitron
gilbitron / .env.travis
Last active August 12, 2023 08:06
Laravel 5 Travis CI config
APP_ENV=testing
APP_KEY=SomeRandomString
DB_CONNECTION=testing
DB_TEST_USERNAME=root
DB_TEST_PASSWORD=
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_DRIVER=sync
@DaveChild
DaveChild / ean_check.php
Created November 23, 2011 10:45
PHP Function to Validate EANs
<?php
/*
0346745008178
Should fail - checksum should be 9
5060096384137
Should pass
5020650002112