Skip to content

Instantly share code, notes, and snippets.

View hsablonniere's full-sized avatar
😎

Hubert SABLONNIÈRE hsablonniere

😎
View GitHub Profile
@hsablonniere
hsablonniere / abort-signal-apis.md
Last active May 21, 2021 22:18
APIs which accept an AbortSignal
<?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 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 / 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
@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 / data.json
Last active April 8, 2016 12:42
SW intercept 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 March 13, 2016 20:09
Flexbox, et le CSS redevient fun ! - 👽51
<html></html>
@hsablonniere
hsablonniere / 41Jbxj3MxTx.css
Last active March 18, 2016 22:53
CSS pour les nuls - 👽51
.container {
border: 1px solid #777;
box-sizing: border-box;
font-family: sans-serif;
font-weight: bold;
padding: 5px;
}
.box {
box-sizing: border-box;