Skip to content

Instantly share code, notes, and snippets.

Avatar
😎

Hubert SABLONNIÈRE hsablonniere

😎
View GitHub Profile
@hsablonniere
hsablonniere / abort-signal-apis.md
Last active May 21, 2021
APIs which accept an AbortSignal
View abort-signal-apis.md

APIs which accept an AbortSignal

View rss-feeds.opml
<?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 / EXPLAINER.md
Last active Nov 15, 2021
Explainer for my rollup plugin idea about import.meta.url with assets
View EXPLAINER.md

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 / README.adoc
Last active Sep 20, 2017
Conference bingo
View README.adoc

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
View devoxx-ma-speaker-box-raw-notes.adoc

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 Dec 1, 2016 — 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.
View slide-transformer.rb
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
View 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 / data.json
Last active Apr 8, 2016
SW intercept JSON
View data.json
{
"foo": "bar",
"baz": [
{ "id": 1, "name": "one" },
{ "id": 2, "name": "two" },
{ "id": 3, "name": "three" },
{ "id": 4, "name": "four" }
]
}
@hsablonniere
hsablonniere / index.html
Created Mar 13, 2016
Flexbox, et le CSS redevient fun ! - 👽51
View index.html
<html></html>
@hsablonniere
hsablonniere / 41Jbxj3MxTx.css
Last active Mar 18, 2016
CSS pour les nuls - 👽51
View 41Jbxj3MxTx.css
.container {
border: 1px solid #777;
box-sizing: border-box;
font-family: sans-serif;
font-weight: bold;
padding: 5px;
}
.box {
box-sizing: border-box;