Skip to content

Instantly share code, notes, and snippets.

View Leodau's full-sized avatar
🥓
Where is my bacon sandwich?

Michele Leo Leodau

🥓
Where is my bacon sandwich?
View GitHub Profile
@Leodau
Leodau / AppServiceProvider.php
Created April 22, 2019 16:58 — forked from simonhamp/AppServiceProvider.php
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@Leodau
Leodau / codegolf.md
Created February 26, 2019 20:17 — forked from xem/codegolf.md
JS code golfing

codegolf JS

Mini projects by Maxime Euzière (xem), subzey, Martin Kleppe (aemkei), Mathieu Henri (p01), Litterallylara, Tommy Hodgins (innovati), Veu(beke), Anders Kaare, Keith Clark, Addy Osmani, bburky, rlauck, cmoreau, maettig, thiemowmde, ilesinge, adlq, solinca, xen_the,...

(For more info and other projects, visit http://xem.github.io)

(Official Slack room: http://jsgolf.club / join us on http://register.jsgolf.club)

@Leodau
Leodau / minimal-analytics-snippet.js
Created December 16, 2018 00:04 — forked from DavidKuennen/minimal-analytics-snippet.js
Minimal Analytics Snippet
(function (history, trackingId, options) {
const generateId = () => {
return '_' + Math.random().toString(36).substr(2, 9);
};
const getId = () => {
if (!localStorage.cid) {
localStorage.cid = generateId()
}
return localStorage.cid;
};
@Leodau
Leodau / README.md
Created September 13, 2018 22:04 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@Leodau
Leodau / webdev_online_resources.md
Created July 17, 2018 16:44 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)