Skip to content

Instantly share code, notes, and snippets.

View elkebirmed's full-sized avatar

Mohamed Elkebir elkebirmed

  • El-Affroun, Blida,, Algeria
View GitHub Profile
@danharper
danharper / gulpfile.js
Last active September 25, 2024 09:04
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@stasyanko
stasyanko / GetRoutes.php
Created May 3, 2018 09:04
Laravel: optional language route prefix (e.g. domain.com/fr/about or without prefix domain.com/about)
// include any routes you need here that are accessed with GET method
// as POST routes don't need prefixing usually
Route::get('/', 'HomeController@index');
Route::get('/about', 'HomeController@showAbout');