Skip to content

Instantly share code, notes, and snippets.

Avatar

Caio Tavares caiotava

View GitHub Profile
View mac-osx-c.md

Console Tools

xcode-select --install

View c-header-file.sh
gcc -E - <<< "#include<stdio.h>" | grep "stdio.h"
View xdebug_function_trace.php
<?php
# command line php -d xdebug.profiler_enable=On -d xdebug.profiler_output_dir=.
ini_set('xdebug.default_enable', 1);
ini_set('xdebug.collect_params', 3);
ini_set('xdebug.collect_return', 1);
xdebug_start_trace('debug');
@caiotava
caiotava / memory-management.md
Last active Jan 28, 2017
Links about memory management
View memory-management.md
@caiotava
caiotava / gist:b73fe9496f9a65a07611
Created May 3, 2015
Custom FormRequest Laravel
View gist:b73fe9496f9a65a07611

CustomRequest

Abstract class to allow custom validation

namespace App\Http\Requests;

use App\Http\Requests\Request;
use Illuminate\Http\Exception\HttpResponseException;
You can’t perform that action at this time.