Skip to content

Instantly share code, notes, and snippets.

View gabrielcatellier's full-sized avatar

Gabriel Catellier gabrielcatellier

View GitHub Profile
@gabrielcatellier
gabrielcatellier / redis-test.php
Last active October 23, 2018 13:10
Redis Installation test script
<style>
pre {
position: relative;
max-width: 800px;
padding: 30px 15px;
background: #f7f7f7;
word-break: break-all;
word-wrap: break-word;
white-space: pre;
font-size: 14px;
@gabrielcatellier
gabrielcatellier / Package.json
Last active August 23, 2019 15:24
basic javascript module pattern based on backbonejs.
{
"name": "appName",
"description": "",
"version": "0.0.1",
"author": "Gabriel Catellier",
"private": true,
"scripts": {
"dev": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
@gabrielcatellier
gabrielcatellier / class-aggregator.php
Last active July 2, 2020 04:37
Wordpress endpoint aggregator with Cache
<?php
/**
* Requires PHP 5.6+ due to the use of the splat operator and the [] "array declaration".
*/
class Rest_Aggregator {
/**
* Page number to fetch.