Skip to content

Instantly share code, notes, and snippets.

View froger's full-sized avatar

hfroger froger

View GitHub Profile
@froger
froger / docker-compose.yml
Created December 5, 2023 15:38
Install decidim < 5min.
# #################################################
# CONTRIBUTOR; WARNING
# This file is generated by the /update-documentation.rb script.
# Don't edit it directly.
#
# @see /update-documentation.rb
# @see /templates/quickstart.yml.erb
# #################################################
version: '3.3'
services:
type: install
name: Decidim
description:
short: Decidim Saas
categories:
- apps/platforms
baseUrl: https://git.octree.ch/decidim/vocacity/docker/-/raw/main
logo: /overrides/0.24.3/app/assets/images/decidim_logo.png?inline=false
globals:
DB_PASSWORD: "${fn.password}"
@froger
froger / async-infinite-scroll.jsx
Last active October 23, 2016 17:55
Make react-infinite-scroll async.
/*!
* React v15.0.0
* Compile with babel-presets: ['babel-preset-es2015', 'react']. @see https://babeljs.io/docs/plugins/#presets
*
* Refactoring from react-infinite-scroll - v 0.1.3 - guillaumervls 2014-04-07
* @see https://www.npmjs.com/package/react-infinite-scroll
*
* Changes from react-infinite-scroll
* ====
*
@froger
froger / rails-route-reflexion.rb
Created October 6, 2016 17:52
Reflexion on rails routes
###
# Rails : 5.0.0
# Ruby : 2.3.0
#
# Reflexion on rails routes. Can be usefull to display our applications
# routes in a dev mode. (For example in a development-only namespace /dev/).
##
# Give informations about the routes that use the given verbs (get or post).
@froger
froger / active_records_association_reflexion.rb
Last active October 6, 2016 17:53
Reflections methods on ActiveRecord relations, for serialization
###
# Rails : 5.0.0
# Ruby : 2.3.0
#
# Reflections methods on ActiveRecord relations, for serialization
# purpose, for example.
#
# I used this to have some Hypermedia document when responding in JSON,
# with this informations, I could easily guess the _embedded links