Skip to content

Instantly share code, notes, and snippets.

Avatar

Axel Roche aquelito

View GitHub Profile
@aquelito
aquelito / mapbox-gl.js.md
Last active Dec 31, 2018
Mapbox GL - Helpers
View mapbox-gl.js.md
@aquelito
aquelito / mysql.md
Last active Jul 1, 2019
Mysql command shelll
View mysql.md

Mysql

Command

Import bdd file into bdd

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

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 Apr 23, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<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 Mar 26, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Feb 20, 2014
Encodage du tableau JSON passer via data attribute
View dataAttributes.php
<?php
// UPDATE::AxelRoche
$var_modal = array(
'id' => $_product->getId(),
'title' => $_product->getName(),
'price' => $_product->getPrice(),
'image' => $_product->getImageUrl(),
'qty' => 1,
);
@aquelito
aquelito / git-command.md
Last active Jan 7, 2021
GIT - Ligne de commande principale
View git-command.md
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.

You can’t perform that action at this time.