Skip to content

Instantly share code, notes, and snippets.

View defro's full-sized avatar

Joël Gaujard defro

View GitHub Profile
@defro
defro / sleepagotchi lite CLAN.csv
Last active May 15, 2025 12:06
Sleepagotchi LITE game : level and stars cards requirement by constellation
Constellation # Min card level Min card star
5 18 2 simple
6 20 2 simple
7 22 3 simple
8 24 3 simple
9 26 4 simple
10 28 4 simple
11 30 5 simple
12 32 5 simple
13 34 1 silver
@defro
defro / 1-prestashop-brands.sql
Last active March 18, 2025 14:03
PrestaShop 1.7 : query to export all data > create a CSV file > import to an other PrestaShop instance
SELECT
m.id_manufacturer AS `ID`,
m.active AS `Active (0/1)`,
m.name AS `Name`,
IFNULL(ml.description, '') AS `Description`,
IFNULL(ml.short_description, '') AS `Short description`,
IFNULL(ml.meta_title, '') AS `Meta title`,
IFNULL(ml.meta_keywords, '') AS `Meta keywords`,
IFNULL(ml.meta_description, '') AS `Meta description`,
CONCAT('https://www.my-prestashop.com/img/m/', m.id_manufacturer, '.jpg') AS `Image URL`
Jay-Z
99 Problems
If you are presented with conundrums involving the fairer sex, my condolences. I have four-score and nineteen conundrums; a trollop is not among them.
Notorious B.I.G.
Big Poppa
I revel in being referred to as the grand patriarch! (Elevate your hands skyward if your claims of being a Lothario are verifiable.)
Snoop Dogg
Gin & Juice
@defro
defro / php-docker-ext
Created November 19, 2022 13:16 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
import 'package:flutter/material.dart';
class LifeCycle extends StatefulWidget {
// 1 - createState(): When the Framework is instructed to build a StatefulWidget, it immediately calls createState()
@override
_LifeCycleState createState() => _LifeCycleState();
}
class _LifeCycleState extends State<LifeCycle> {
// 2 - mounted is true: When createState creates your state class, a buildContext is assigned to that state.
### Keybase proof
I hereby claim:
* I am defro on github.
* I am defro (https://keybase.io/defro) on keybase.
* I have a public key ASAh99k56l8Y3AhFWMUt3CtqrG7bQrFSNAyCAyspQqXzHwo
To claim this, I am signing this object: