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 / CONTRIBUTING.md
Created October 29, 2019 23:24
Contributing guidelines

🔫 Commit Guidelines

Structure Example :-

type(branch): subject

Example: feat(backoffice): support full game editing

Type :-

Must be one of the following:

@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 / settings.json
Last active February 27, 2023 03:43
VSCODE LEO Settings
{
// Fonts
"editor.fontFamily": "Fira Code Medium",
"editor.fontSize": 15,
"editor.fontLigatures": true,
// Editor & Usage
"window.zoomLevel": 1,
"editor.insertSpaces": true,
"editor.tabSize": 4,
@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 / upload.js
Created February 10, 2019 14:40
Upload a sound file in NODEJS
const fs = require('fs');
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
const port = 3000;
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.raw({ type: 'audio/wav', limit: '50mb' }));
app.get('/', (req, res) => res.send('Hello World!'));
@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)
@Leodau
Leodau / gist:5280931
Created March 31, 2013 15:10
HTML: Starter Template
<!doctype html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
</html>