Skip to content

Instantly share code, notes, and snippets.

View ffoodd's full-sized avatar
🎯
Focusing

Gaël Poupard ffoodd

🎯
Focusing
View GitHub Profile
@eQRoeil
eQRoeil / raccourcis-clavier-eviter.md
Last active August 29, 2015 14:19
Liste de raccourcis clavier à éviter pour une webapp

Je cherche une liste (ou en établir une) de raccourcis clavier à éviter pour ne pas venir en conflit avec des raccourcis existants, pour une webapp.

En me basant sur raccourcis clavier de firefox :

  • tab (a11y)
  • ctrl p
  • ctrl c
  • ctrl v
  • ctrl x
  • ctrl s (sauf si c'est un enregistrement ?)
@johnbillion
johnbillion / gist:4fa3c4228a8bb53cc71d
Last active February 18, 2025 13:06
WordPress Flow
INITIALISATION
==============
load wp-config.php
set up default constants
load wp-content/advanced-cache.php if it exists
load wp-content/db.php if it exists
connect to mysql, select db
load object cache (object-cache.php if it exists, or wp-include/cache.php if not)
load wp-content/sunrise.php if it exists (multisite only)
@bendoh
bendoh / fix-wp-stickies.php
Last active March 24, 2022 10:05
Fix sticky posts in WordPress. Deals with issues in trac #27282
/**
* Provide a flag for whether or not the request really wanted ignore sticky
* posts.
*/
add_filter( 'query_vars', function( $v ) {
$v[] = 'really_ignore_sticky_posts';
return $v;
} );
@leonderijke
leonderijke / svgfixer.js
Last active June 17, 2024 07:57
Fixes references to inline SVG elements when the <base> tag is in use.
/**
* SVG Fixer
*
* Fixes references to inline SVG elements when the <base> tag is in use.
* Firefox won't display SVG icons referenced with
* `<svg><use xlink:href="#id-of-icon-def"></use></svg>` when the <base> tag is on the page.
*
* More info:
* - http://stackoverflow.com/a/18265336/796152
* - http://www.w3.org/TR/SVG/linking.html
@jchild3rs
jchild3rs / gist:470be49a4bc4caf3ca8a
Last active April 8, 2020 15:54
Hologram Gulp Plugin
/*
// Usage:
gulp.task('docs', function(cb) {
gulp.src('path/to/your/src')
.pipe(hologram(cb));
});
*/
var gulp = require('gulp'),
notify = require('gulp-notify'),
@nico3333fr
nico3333fr / gist:2043855fe5f854edee6a
Last active October 12, 2021 18:44
Jquery tabs using ARIA
I've set up a very light jquery tab system for a website:
starting from this HTML code:
<ul class="pates-tabs__list">
<li class="pates-tabs__item">
<a href="#presentation" id="label_presentation" class="pates-tabs__link">Présentation</a>
</li>
<li class="pates-tabs__item">
@raucao
raucao / typekit.js
Last active February 12, 2020 06:25
Improved Typekit embed code
(function(d) {
var tkTimeout=3000;
if(window.sessionStorage){if(sessionStorage.getItem('useTypekit')==='false'){tkTimeout=0;}}
var config = {
kitId: 'a1b2c3f4',
scriptTimeout: tkTimeout
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";if(window.sessionStorage){sessionStorage.setItem("useTypekit","false")}},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
@ericrasch
ericrasch / TypeKit embed code.php
Last active July 4, 2017 03:54
Different methods for loading TypeKit's embed code.
<?php
/**
* TypeKit's default embed code.
* Source: http://help.typekit.com/customer/portal/articles/649336-embed-code
* Avg. Load Time: 191ms; 198ms; 265ms
*/
?>
<script type="text/javascript" src="//use.typekit.net/xxxxxxx.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
@tonyganch
tonyganch / abc.json
Created January 12, 2014 12:11
Alphabetical sort order for csscomb.js (based on csscomb.json)
{
"sort-order": [
"-webkit-animation",
"-moz-animation",
"-ms-animation",
"-o-animation",
"animation",
"-webkit-animation-delay",
"-moz-animation-delay",
"-ms-animation-delay",
anonymous
anonymous / gist:7945247
Created December 13, 2013 14:40
jamais en fr :
ŠšŽžŸÿÁáÃãÐðÑñÒòÓóÕõØøÖöÅåÝýÞþÚúÌìÍíˇ˘˙˚˜˝˛ˆ¸¨´`^¦ı†‡¬∂∆∑∫◊Ωª¢¿¡fiflfiflffiffl¯∏√∞ƒ⁄·¤
à voir en fonction de la nature du projet :
‰ º µ ¼ ½ ¾ § ¶ • © ® ™ ± ≈ ≠ ¹ £ ¥ ‹ › ‘ ’ “ ” „ ≤ ≥ π ß ~
toujours en fr :