Skip to content

Instantly share code, notes, and snippets.

View hsablonniere's full-sized avatar
😎

Hubert SABLONNIÈRE hsablonniere

😎
View GitHub Profile
@hsablonniere
hsablonniere / README.md
Created May 2, 2012 22:42
scrollIntoViewIfNeeded 4 everyone!!!

scrollIntoViewIfNeeded 4 everyone!!!

This gist provides a simple JavaScript implementation of the non-standard WebKit method scrollIntoViewIfNeeded that can be called on DOM elements.

Usage

Just use the code in index.js in your app or website. You can see usage in the test page test.html.

The parent element will only scroll if the element being called is out of the view. The boolean can force the element to be centered in the scrolling area.

@hsablonniere
hsablonniere / .gitignore
Last active January 18, 2023 12:12
HTML5 skeleton
.idea
@hsablonniere
hsablonniere / EXPLAINER.md
Last active November 15, 2021 21:19
Explainer for my rollup plugin idea about import.meta.url with assets

Explainer for my rollup plugin idea

The "i-prefer-import-meta-url-over-using-esm-import-to-get-a-relative-file-url" plugin ;-)

Context

In my components library, I have SVG images. I used them with <img> tags in my components and to get the proper relative URL, I use new URL('../assets/image.svg', import.meta.url').href.

To make this work in a rollup build, you need to:

@hsablonniere
hsablonniere / abort-signal-apis.md
Last active May 21, 2021 22:18
APIs which accept an AbortSignal
@hsablonniere
hsablonniere / .gitignore
Last active February 16, 2021 21:16
PHP/Symfony2 .gitignore
# Symfony2
/web/bundles/
/app/bootstrap.php.cache
/app/cache/*
/app/logs/*
/build/
/vendor/
/bin/
/composer.phar
composer.lock
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Hubert subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Cinéma et Séries" title="Cinéma et Séries">
<outline type="rss" text="Allociné (ciné &amp; séries)" title="Allociné (ciné &amp; séries)" xmlUrl="http://rss.allocine.fr/ac/actualites/" htmlUrl="http://www.allocine.fr"/>
<outline type="rss" text="Gamekult - Jeux vidéo PC et consoles: tout l'univers des joueurs" title="Gamekult - Jeux vidéo PC et consoles: tout l'univers des joueurs" xmlUrl="http://www.gamekult.com/cobranding/rss/news.xml" htmlUrl="https://www.gamekult.com/"/>
@hsablonniere
hsablonniere / keybase.md
Last active January 17, 2018 17:06
keybase.md

Keybase proof

I hereby claim:

  • I am hsablonniere on github.
  • I am hsablonniere (https://keybase.io/hsablonniere) on keybase.
  • I have a public key ASBARiuIwAOtnXcT9rHaOt8qHGE98lXrAh2uASowMG5T_wo

To claim this, I am signing this object:

@hsablonniere
hsablonniere / README.adoc
Last active September 20, 2017 14:24
Conference bingo

Conference bingo

Background

In many tech conferences, attendees are invited to rate the talk and/or the speaker from 1 to 5 stars. This type of ratings is interesting but has a few drawbacks.

The discussion started as a twitter thread with this french proposition.

C9M xEZWsAARmav
@hsablonniere
hsablonniere / devoxx-ma-speaker-box-raw-notes.adoc
Created February 7, 2017 23:44
Devoxx MA, Speaker BOF (raw notes)

Devoxx MA, Speaker BOF (raw notes)

Here are raw notes, questions and answers that occured during the Speaker BOF at Devoxx MA.

I’m passionnate and I want to make a difference to a group I’m a member of. (said by a woman)
First non Java conf and that felt non professional. Hard to get contact with people at first but after I manage to get something out of it.
@hsablonniere
hsablonniere / slide-transformer.rb
Created December 1, 2016 23:54 — forked from mojavelinux/slide-transformer.rb
Reconfigure AST to convert all blocks with the role SLIDE into sections and transferring the content to those new sections.
require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
require 'pp'
Asciidoctor::Extensions.register do
treeprocessor do
process do |doc|
doc.blocks.replace (doc.find_by role: 'SLIDE').map {|slide|
slide.parent.blocks.delete slide
sect = Asciidoctor::Section.new doc, 1, false