Skip to content

Instantly share code, notes, and snippets.

Avatar

Rémi Gérard-Marchant remitbri

View GitHub Profile
@remitbri
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
selector,
selector:hover,
selector:active,
selector:focus{
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
@remitbri
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());
console.info('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
console.group('My group');
// …
@remitbri
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
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 koken.me project. As of Koken v0.7.1, the solution https://gist.github.com/bradleyboy/0b4c335141bb2d22634f 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:categories>
<koken:loop>
<koken:if data="category.id" equals="1">
Also in <strong>{{ category.title }}</strong>
<ul>
<koken:load source="essays" filter:category="1">
<koken:loop>
<li>
<koken:link>
{{ essay.title }}
@remitbri
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>*{font-size:10000;}
p:after{content:""; display:inline-block; width:100%;
font:0/0 a; margin-top:-100%; line-height:0; height:0; padding:0;}
@remitbri
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
"♥".charCodeAt(0).toString(16)
@remitbri
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")