Skip to content

Instantly share code, notes, and snippets.

@devlint
devlint / alias.gitconfig
Last active June 5, 2018 08:40
Voici la liste de mes alias GIT
[alias]
#lister tous mes alias
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\t=> \\2/'
#commandes de base
st = status
ci = commit
cl = clone
co = checkout
cm = commit -m
@devlint
devlint / a11y.html
Last active September 21, 2017 15:17
A11Y Pattern
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Accessible HTML Content Patterns</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<!-- // TIPS
On peut trouver plusieurs balises header, mais le role="banner doit être unique dans la page.
La balise main et le role="main" sont uniques dans la page.
<picture style="width: 100%;height: 400px;display: block;border: 1px solid;">
<source srcset="https://unsplash.it/1980/980?image=0" media="(min-width: 1000px)">
<source srcset="https://unsplash.it/1000/510?image=10" media="(min-width: 600px)">
<img src="" class="OF-cover" srcset="https://unsplash.it/400/600?image=20" alt="…" style="width:100%;height: 100%;">
</picture>
Verifying that +devlint is my blockchain ID. https://onename.com/devlint
@devlint
devlint / templateJS.list
Last active December 30, 2015 06:48
Quelques ressources et pistes pour "assembler" des pages html à partir de blocs/vues/modules ala include()
:: Ressources Github ::
https://github.com/bezoerb/grunt-php2html
https://github.com/MathiasPaumgarten/grunt-bake
https://github.com/vanetix/grunt-includes
https://github.com/mathiasbynens/grunt-template
https://github.com/aaaristo/grunt-html-builder
https://github.com/spatools/grunt-html-build
https://github.com/tonai/grunt-build-html
https://github.com/wmluke/grunt-inline-angular-templates
@devlint
devlint / Log-.md
Created December 3, 2013 08:52 — forked from bgrins/Log-.md

Javascript log Function

Every time I start a new project, I want to pull in a log function that allows the same functionality as the console.log, including the full functionality of the Console API.

There are a lot of ways to do this, but many are lacking. A common problem with wrapper functions is that the line number that shows up next to the log is the line number of the log function itself, not where log was invoked. There are also times where the arguments get logged in a way that isn't quite the same as the native function.

This is an attempt to once and for all document the function that I pull in to new projects. There are two different options:

  • The full version: Inspired by the plugin in HTML5 Boilerplate. Use this if you are writing an application and want to create a window.log function. Additionally,
@devlint
devlint / oneTeaMobile.bower.json
Created May 14, 2013 14:18
Liste des dépendances bower
{
"name": "oneTea-Mobile",
"version": "1.0.0",
"dependencies": {
"c2is-less": "http://github.com/c2is/c2is-less-component.git",
"jquery": "2.0.0",
"modernizr": "https://raw.github.com/josh/sprockets-modernizr/2.6.2/modernizr.js",
"ratchet": "ratchet"
}
}
@devlint
devlint / offcanvas.html
Created March 13, 2013 10:54
Off-Canvas - Just a simple and minimal 'off-canvas' template with css3 translate3d & jQuery. Needs: - Font Awesome for icons - jQuery & normalize.css components
<!DOCTYPE html>
<!--[if lt IE 10]> <html class="lt-ie10"> <![endif]-->
<!--[if gt IE 10]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>OFF-CANVAS</title>
@devlint
devlint / svg.twig
Last active August 29, 2015 14:10
Sf:include:svg:twig
Il est possible d'inclure un svg directement dans un twig en utilisant {% include %} d'une manière un peu particulière :
2 prérequis :
- le fichier SVG ne sera pas un asset en tant que tel
- le fichier SVG aura une extension `.svg.twig`
## exemple
```twig
<a id="logo" href="{{ path('html_page', {'template': 'pages:01.home%2Fhome.html.twig'}) }}">
{% include "C2isOneTeaBundle:svg:logo_R&C.svg.twig" with {'width': '90'} %}
</a>