Skip to content

Instantly share code, notes, and snippets.

View aquelito's full-sized avatar

Axel Roche aquelito

View GitHub Profile
@aquelito
aquelito / liste.csv
Last active October 20, 2024 21:43
UX Critères correspondances
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
phase;level;numero;critere;rgaa;wcag
DEV;-1,0;1.1;Structurer la zone d’entête principale avec <header role="banner">;9.2, 12.6;1.3.1(A), 2.4.1 (A), 4.1.2 (A)
DEV;-1,0;1.2;Identifier le moteur de recherche avec role="search";12.6;1.3.1(A), 2.4.1 (A), 4.1.2 (A)
DEV;-1,0;1.3;Structurer la zone de contenu principal avec <main role="main">;9.2, 12.6;1.3.1(A), 2.4.1 (A), 4.1.2 (A)
DEV;-1,0;1.4;Structurer les informations relatives au site avec <footer role="contentinfo">;9.2, 12.6;1.3.1(A), 2.4.1 (A), 4.1.2 (A)
DEV;-1,0;1.5;Structurer les menus de navigation principaux et secondaires avec <nav role="navigation">;9.2, 12.6;1.3.1(A), 2.4.1 (A), 4.1.2 (A)
DEV;-1,0;1.6;Structurer les menus de navigation avec des listes;9.3;1.3.1 (A)
MAQ,DEV;-1,0,1;1.7;Mettre en place une hiérarchie de titres logique et exhaustive avec les balises <h1> à <h6>;9.1;1.3.1 (A), 2.4.1 (A), 2.4.6 (AA), 4.1.2 (A)
DEV;-1,0,1;2.1;Renseigner un <title> précis sur chaque page;8.5, 8.6;2.4.2 (A)
DEV;-1,0;3.1;Renseigner la langue principale de la pa
@aquelito
aquelito / user.service.js
Created September 15, 2021 10:36
javascript api service file
/**
* @fileOverview The service
*
* @use
*
* const User = require('./user.model')
* const UserService = require('./user.service')
* module.exports = UserService(User)
*
* @requires ...
@aquelito
aquelito / mapbox-gl.js.md
Last active December 31, 2018 12:42
Mapbox GL - Helpers
@aquelito
aquelito / mysql.md
Last active July 1, 2019 10:18
Mysql command shelll

Mysql

Command

Import bdd file into bdd

mysql -u root -p DBB_NAME < /PÄTH_TO_SQL_FILE.sql
/*doc
---
title: Breadcrumb
component:
notes:
- Note 1
- Note 2
see:
- link1
@aquelito
aquelito / create_file.php
Last active February 9, 2019 23:17 — forked from facine/__INDEX.txt
Drupal 8 - Examples
<?php
// Programmatically create files.
use Drupal\file\Entity\File;
$file = File::create([
'uid' => 1,
'filename' => 'logo.svg',
'uri' => 'public://page/logo.svg',
'status' => 1,
]);

Drupal 8 Snippet

Check if current page is admin page

  if (service('router.admin_context')->isAdminRoute(\Drupal::routeMatch()->getRouteObject())) {
    ...
  }
@aquelito
aquelito / SassMeister-input-HTML.html
Created April 23, 2014 19:10
Generated by SassMeister.com.
<div class="team__item" itemprop="employee">
<div class="team__inner" itemscope="" itemtype="http://schema.org/Person">
<div class="team__content">
<div class="team__content_back">
<h3 itemprop="name">Name</h3>
<p itemprop="jobTitle">JobTitle</p>
</div>
</div>
</div>
@aquelito
aquelito / SassMeister-input.scss
Created March 26, 2014 21:09
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@function array-value($list, $key) {
@each $item in $list {
@if ($key == nth($item, 1)) {
@return nth($item, 2);
@aquelito
aquelito / dataAttributes.php
Created February 20, 2014 15:38
Encodage du tableau JSON passer via data attribute
<?php
// UPDATE::AxelRoche
$var_modal = array(
'id' => $_product->getId(),
'title' => $_product->getName(),
'price' => $_product->getPrice(),
'image' => $_product->getImageUrl(),
'qty' => 1,
);