I hereby claim:
- I am martindilling on github.
- I am martindilling (https://keybase.io/martindilling) on keybase.
- I have a public key ASBSLXzVcyxkYyHJi5VZ0MOMhv7EzBhsvTY1IdfNa-9HHAo
To claim this, I am signing this object:
<?php | |
session_start(); | |
require_once('config.php'); | |
require_once('db.class.php'); | |
// New instance of the db class | |
$db = new db(DB_NAME, DB_HOST, DB_USER, DB_PASSWORD); | |
// If nothing send by _POST, redirect to index | |
if ( ! count($_POST) > 0) |
Sublime Text Packages: | |
DocBlockr | |
Emmet | |
Gist | |
Highlighter | |
BracketHighlighter | |
SublimeCodeIntel | |
SublimeLinter | |
Theme - Spacegray |
{ | |
"theme": "earthsong.sublime-theme", | |
"color_scheme": "Packages/User/peel (SL).tmTheme", | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 9, | |
"highlight_line": true, | |
"ignored_packages": ["Vintage"], |
#!/usr/bin/env bash | |
# --------------------------------------- | |
# Virtual Machine Setup | |
# --------------------------------------- | |
# Adding multiverse sources. | |
cat > /etc/apt/sources.list.d/multiverse.list << EOF | |
deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse |
<?php namespace Validators\ExtendedValidator; | |
use Illuminate\Validation\Validator; | |
/** | |
* Extending Laravels validator to support some extra validation rules. | |
* | |
* http://stackoverflow.com/a/26537606 | |
* | |
* @author Martin Dilling-Hansen <[email protected]> |
<?php | |
/** | |
* @author Martin Dilling-Hansen <[email protected]> | |
* @date 2015-01-12 | |
*/ | |
interface hasWords | |
{ | |
/** | |
* Get an flat array of words. |
<?php | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateCouponsTable extends Migration | |
{ | |
public function up() | |
{ | |
Schema::create('coupons', function (Blueprint $table) { |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Load a template passing the given data into it. | |
* | |
* Note: Assumes templates are loaded from a 'templates' folder. | |
* Use dot-notation for defining the template name. | |
* Don't include the file extension in the template name. | |
* eg. 'pages.home' > 'templates/pages/home.php' | |
* 'partials.elements.contact-button' > 'templates/partials/elements/contact-button.php' |