Skip to content

Instantly share code, notes, and snippets.

Sidrit Trandafili sidis405

Block or report user

Report or block sidis405

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View singularize.php
* Singularize a string.
* Converts a word to english singular form.
* Usage example:
* {singularize "people"} # person
function singularize ($params)
sidis405 / gulpfile.js
Created Oct 30, 2015
Using Elixir outside of Laravel
View gulpfile.js
var elixir = require('laravel-elixir');
config.assetsPath = 'app';
config.publicPath = 'dist';
elixir(function(mix) {
// your mixes here
sidis405 / EloquentFooRepository.php
Created Dec 20, 2016 — forked from thepsion5/EloquentFooRepository.php
Example implementation of a Eloquent-based repository that provides a fluent interface for sorting and pagination without exposing the underlying model API.
View EloquentFooRepository.php
class EloquenFooRepository
* The base eloquent model
* @var Eloquent
protected $model;
View script.js_for_bjorn
* Tab enabling/disabling. Place this at the end of scripts.js
* You'll be good to go.
* Sid
$( function() {
if(window.location.hash) {
$('*[data-isotope-filter="'+ decodeURIComponent(window.location.hash.substring(1)) + '"]').trigger('click');
View gist:688185b24823bba134aaa395a99c721e
server {
listen 80;
server_name HOST_NAME;
root "/var/www/HOST_NAME/current/public";
index index.php index.html index.htm;
access_log off;
error_log /var/log/nginx/HOST_NAME.error.log crit;
View BindDatabaseServiceProvider.php
namespace App\Commands\Database;
use Illuminate\Support\ServiceProvider;
class BindDatabaseServiceProvider extends ServiceProvider
public function boot()
You can’t perform that action at this time.