Skip to content

Instantly share code, notes, and snippets.

View antoine1003's full-sized avatar
💻
Code in progress...

Antoine DAUTRY antoine1003

💻
Code in progress...
View GitHub Profile
@antoine1003
antoine1003 / btn-loading.directive.ts
Created December 4, 2023 10:55
An Angular directive to make a loading button. It adds a loading icon at the beggining of the button when the appBtnLoading is true.
import { Directive, ElementRef, Input, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
@Directive({
selector: '[appBtnLoading]'
})
export class BtnLoadingDirective implements OnChanges {
@Input({required: true})
appBtnLoading = false;
private readonly _LOADING_INDICATOR_ELEMENT!: HTMLElement;
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Antoine DAUTRY",
"label": "Développeur Fullstack",
"picture": "https://media-exp1.licdn.com/dms/image/C4E03AQHJ7H8CEGXRzg/profile-displayphoto-shrink_800_800/0/1632729565334?e=1653523200&v=beta&t=5rDc9oIpEFIlfNar4EgpJbE9cprlYeZ7NnrqQ-z7wW8",
"email": "antoine.dautry@gmail.com",
"phone": "",
"website": "https://adautry.fr",
"summary": "",
@antoine1003
antoine1003 / Card
Last active February 18, 2022 11:37
Card pour la PAR01
<div class="implantations">
<mat-card class="implantations__item">
<mat-card-title>
Centre de détention de Meulun <span class="implantations__badge implantations__badge-inactive">Inactif</span>
</mat-card-title>
<mat-card-content>
<p>10 quai de la courtille - 45000 Melun</p>
<button class="implantations__arrow"><mat-icon >chevron_right</mat-icon></button>
</mat-card-content>
@antoine1003
antoine1003 / elephant.scss
Last active February 2, 2022 10:01
Theme Elephant pour reveal.js
/**
* Blood theme for reveal.js
* Author: Antoine DAUTRY https://github.com/antoine1003
*
* Designed to be used with highlight.js theme
* "monokai_sublime.css" available from
* https://github.com/isagalaev/highlight.js/
*
* For other themes, change $codeBackground accordingly.
*
@antoine1003
antoine1003 / Custom notifications - GLPI.md
Last active December 4, 2023 19:25
Some documentation on how did I add custom notification in a GLPI plugin. Feel free to add some infos.

Custom notification in GLPI

GLPI version 9.5.0

⚠️ This documentation is written for a plugin called perception, you'll need to adapt function, array key, ... to you own plugin.

Steps

Create notification class

@antoine1003
antoine1003 / Installation of XDEBUG on VSCODE.md
Last active August 13, 2020 15:09
How to install XDebug on VSCODE

Install XDegug Extension

Install XDebug extension on VSCode available here

Create a lauch.json

In the root of your project create a .vscode folder and inside create a lauch.json. Put this code inside :

{
    "version": "0.2.0",
@antoine1003
antoine1003 / deploy.php
Created April 14, 2020 10:23
Fichier de configuration du déploiement du site Symfony 4.4 avec deployer.org
<?php
namespace Deployer;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Dotenv\Dotenv;
require_once __DIR__.'/vendor/autoload.php';
require 'recipe/symfony4.php';