Skip to content

Instantly share code, notes, and snippets.


Rémi Gérard-Marchant remitbri

View GitHub Profile
remitbri / noHighlightColorOnTap.css
Created Sep 8, 2014
Disables / overrides the highlight color shown when the user taps a link or a JavaScript clickable element in Safari on iPhone.
View noHighlightColorOnTap.css
-webkit-tap-highlight-color: rgba(0,0,0,0);
remitbri / phoneNumberTextNotLink.html
Last active Aug 29, 2015
Disables automatic detection of possible phone numbers in a webpage in Safari on iOS
View phoneNumberTextNotLink.html
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 / 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 / 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")