Skip to content

Instantly share code, notes, and snippets.

View ambroisemaupate's full-sized avatar

Ambroise Maupate ambroisemaupate

View GitHub Profile
@dimasch
dimasch / redis-clear
Last active April 13, 2024 12:39
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@maximeberard
maximeberard / checks-before-release.md
Last active March 28, 2023 08:13
Checks before release
  • Preload images
  • No JS
  • Favicons (260x260) -> http://realfavicongenerator.net/
  • Share images : Facebook (recommended : 1200x630, min : 200x200), Pinterest (750px wide min)
  • Checks dynamic content styles (a, li, b)
  • Remove log messages (js), clean commented code
  • Sitemap.xml
  • Title, metas
  • Share metas for Facebook / GooglePlus / Pinterest / Twitter
  • Legals / Credits
@SimonSimCity
SimonSimCity / pagination.html.twig
Last active September 30, 2023 17:29
A gist for pagination in Twig, based on the total number of pages, the current page and some URL-settings.
{#
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/
Updated by: Simon Schick <simonsimcity@gmail.com>
Parameters:
* currentFilters (array) : associative array that contains the current route-arguments
* currentPage (int) : the current page you are in
* paginationPath (string) : the route name to use for links
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled)
* lastPage (int) : represents the total number of existing pages
@rezozero
rezozero / gist:3964476
Created October 27, 2012 12:25
LESS: Mixins
/*
Mixins LESS REZOZERO
*/
// For CSS Matrix images
@icon-size: 30px;
@background-size: @icon-size*20 @icon-size*16;
.matrix-icon() {
background-image: url(../img/matrix_image@2x.png);