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
@nWidart
nWidart / SublimeLinter.sublime-settings
Created April 20, 2013 09:21
SublimeLinter Settings ile
/*
SublimeLinter default settings
*/
{
/*
Sets the mode in which SublimeLinter runs:
true - Linting occurs in the background as you type (the default).
false - Linting only occurs when you initiate it.
"load-save" - Linting occurs only when a file is loaded and saved.
@nWidart
nWidart / Boxfile
Created May 16, 2013 17:20
Laravel 4 Boxfile
global:
env:
- LARAVEL_ENV: pagoda
web1:
name: l4-web
shared_writable_dirs:
- app/storage/cache
- app/storage/logs
- app/storage/meta
- app/storage/sessions
/* Localized versions of Info.plist keys French */
"Credits" = "Crédits";
"Here are some great libraries I used to create this application:" = "Here are some great libraries I used to create this application:";
"About" = "À propos";
"Thank You" = "Remerciements";
"Thank you to the amazing team at GitHub for creating a great product, without their hard work, none of this would have been possible." = "Merci à l'équipe extraordinaire à GitHub pour créer un excellent produit, sans leur travail acharné, rien de tout cela n'aurait été possible.";
"About the Developer" = "À propos du Développeur";
"Icon Design" = "Icon Design";
@nWidart
nWidart / .gitconfig
Created July 11, 2013 08:40
my .gitconfig file
[hub]
protocol = ssh
[user]
name = Nicolas Widart
email = n.widart@gmail.com
[color]
status = auto
diff = auto
branch = auto
[mergetool]
@nWidart
nWidart / routes.php
Created August 25, 2013 14:38
route closure example
<?php
//http://example.com/users
Route::get('users', function()
{
// Récupère tout les users de la DB
$users = User::all();
// Crée la vue qui liste les users
return View::make('users')->with('users', $users);
@nWidart
nWidart / routes.php
Created August 25, 2013 14:48
Route to action example
<?php
//http://example.com/users
Route::get('users', 'UserController@index');
//http://example.com/users/1
Route::get('users/{id}', 'UserController@show');
//http://example.com/users
Route::post('users', 'UserController@create');
@nWidart
nWidart / routes.php
Created August 25, 2013 17:58
Route to restfull controller example
<?php
Route::controller('users', 'UserController');
class UserController extends BaseController {
//http://example.com/users/profile/1
public function getProfile( $id )
{
return "A user with id : $id.";
@nWidart
nWidart / routes.php
Created August 25, 2013 18:04
Route to resource controller example
<?php
Route::resource('users', 'UserController');
class UserController extends BaseController {
// http://example.com/users
public function index()
{
return "Tous les utilisateurs!";
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
exit('Only to be used as an helper for your IDE');
class App extends Illuminate\Support\Facades\App{
# Apache Server Configs v1.1.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
# to the main server config file (usually called `httpd.conf`), you should add
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
# ##############################################################################
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
# ##############################################################################