Skip to content

Instantly share code, notes, and snippets.

View nWidart's full-sized avatar
💭
Available For Hire

Nicolas Widart nWidart

💭
Available For Hire
View GitHub Profile

Setting up Xdebug on Mac OS using MAMP

Find the loaded configuration file

$ php --ini

Edit the loaded configuration file

mamp 3.1

$ sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
@nWidart
nWidart / info.md
Last active January 11, 2022 11:37
Adding pre-push git hook to run php-cs-fixer
@nWidart
nWidart / Preferences.sublime-settings
Created January 29, 2015 09:50
Preferences.sublime-settings
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"draw_minimap_border": true,
"fade_fold_buttons": false,
"findreplace_small": true,
"font_face": "Source Code Pro",
"font_options":
# Aliases in this file are bash and zsh compatible
# Don't change. The following determines where YADR is installed.
yadr=$HOME/.yadr
# YADR support
alias yav='yadr vim-add-plugin'
alias ydv='yadr vim-delete-plugin'
alias ylv='yadr vim-list-plugin'
alias yup='yadr update-plugins'
27. ErrorException
…/­Modules/­Parts/­Events/­PartWasManufacturedEvent.php12
26. Illuminate\Exception\Handler handleError
…/­Modules/­Parts/­Events/­PartWasManufacturedEvent.php12
25. Modules\Parts\Events\PartWasManufacturedEvent __construct
…/­Modules/­Parts/­Events/­PartWasManufacturedEvent.php25
24. Modules\Parts\Events\PartWasManufacturedEvent deserialize
…/­vendor/­broadway/­broadway/­src/­Broadway/­Serializer/­SimpleInterfaceSerializer.php53
23. Broadway\Serializer\SimpleInterfaceSerializer deserialize
@nWidart
nWidart / brainstorm.md
Last active August 29, 2015 14:13
A brainstorm for Broadway laravel integreation

Bindings

Interface Implementation
CommandBusInterface SimpleCommandBus
UuidGeneratorInterface Version4Generator
EventDispatcherInterface Broadway\EventDispatcher\EventDispatcher
RepositoryInterface Broadway\EventSourcing\EventSourcingRepository
Broadway\EventStore\EventStoreInterface Broadway\EventStore\DBALEventStore
Broadway\EventHandling\EventBusInterface Broadway\EventHandling\SimpleEventBus
@nWidart
nWidart / keybase.md
Created January 13, 2015 19:01
keybase.md

Keybase proof

I hereby claim:

  • I am nwidart on github.
  • I am nwidart (https://keybase.io/nwidart) on keybase.
  • I have a public key whose fingerprint is 5D29 2EFE 4F44 6CE1 B80C C6CF C1AC 62B3 DBC6 4FD4

To claim this, I am signing this object:

@nWidart
nWidart / Category.php
Last active August 29, 2015 14:12
Doctrine relations
<?php namespace Modules\Blog\Entities;
use Doctrine\ORM\Mapping AS ORM;
/**
* @ORM\Entity
* @ORM\Table(name="categories")
*/
class Category
{
<?php
class NUMBERS
{
/**
* Determine if numer is a float even when placed in a string. Bases type on a foreknown decimal length
* @param $num
* @param int $decimals
* @return bool
*/