Skip to content

Instantly share code, notes, and snippets.


Rémi Gérard-Marchant remitbri

View GitHub Profile
remitbri / KOKEN - essays-categories-list.html
Last active Nov 23, 2021
The aim is to list all the essays for all the categories an essay belongs to, in the context of essay.lens in a project. As of Koken v0.7.1, the solution crashes the page. So, instead, manually, the solution below (rinse and repeat for all the categories of your project)…
View KOKEN - essays-categories-list.html
<koken:if data="" equals="1">
Also in <strong>{{ category.title }}</strong>
<koken:load source="essays" filter:category="1">
{{ essay.title }}
remitbri / bucklescript
Last active Nov 21, 2018
polymorphic variant typing problem
View bucklescript
17 ┆ jsStuff =>
18 ┆ switch (beeTypeFromJs(jsStuff)) {
>19 ┆ | Some(output) => output
20 ┆ | None => `baa
21 ┆ };
This has type:
But somewhere wanted:

Keybase proof

I hereby claim:

  • I am remitbri on github.
  • I am remitbri ( on keybase.
  • I have a public key whose fingerprint is B615 4337 FF39 1982 76C9 6205 CF55 6EFE 06D3 16F0

To claim this, I am signing this object:

View DEVTOOLS - chrome console references.js
console.log('Captain\'s Log 1', new Date());'Ammo supplies moderate');
console.debug('Shield\'s are up');
console.warn('Unidentified craft appearing');
console.error('Fire in the cargo bay');Run
console.assert(false, 'Not true'); // say 'Not True' only if 1st param === false'My group');
// …
remitbri / JSON - from console to clipboard.js
Created Aug 5, 2013
nifty formatted JSON to your clipboard (via @ryanseddon)
View JSON - from console to clipboard.js
copy(JSON.stringify(data, null, 2))
remitbri / dabblet.css
Created Mar 21, 2012
justify in xhtml
View dabblet.css
* justify in xhtml
body{background: #f06; background: linear-gradient(45deg, #f06, yellow); min-height: 100%;}
p{width:85%; margin:50px auto; padding:.5em; text-align:justify; background:white; font-size:1%;}
p:after{content:""; display:inline-block; width:100%;
font:0/0 a; margin-top:-100%; line-height:0; height:0; padding:0;}
remitbri / JS - unicode char to hex value.js
Last active Sep 30, 2015
JS - unicode char to hex value ( \2665)
View JS - unicode char to hex value.js
remitbri / JS - strike letters & digits in a text.js
Last active Sep 30, 2015
JS - to strike letters & digits in a text
View JS - strike letters & digits in a text.js
textToBeStriked.replace(/[a-zA-Z0-9À-ÿ]/g, "$&\u0336")
View Icon.css
display: inline-block;
vertical-align: middle;
color: inherit;
width: 1rem;
View gist:d87ff67ff9d6eb66eda5

So, about this short conversation about containing thing, some examples where I think this is not such an obvious move as it sounds.

import React from 'react';

export class Icon extends React.Component {
  /* ... */
  getDefaultProps() {
 return {