defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
#!/usr/bin/env node | |
const fs = require('fs'); | |
const path = require('path'); | |
const yfm = require('front-matter'); | |
const rootDir = './src/_comments'; | |
let comments = {}; |
// get device pixel ratio in dppx | |
// https://github.com/ryanve/res/blob/master/res.js | |
var screen_density = | |
typeof window == 'undefined' | |
? 0 | |
: +window.devicePixelRatio || | |
Math.sqrt(screen.deviceXDPI * screen.deviceYDPI) / 96 || | |
0 | |
// keep only 3 decimals: http://jsfiddle.net/AsRqx/ | |
screen_density = +(Math.round(screen_density + 'e+3') + 'e-3') |
url = srcset.scan(/([^, ][^ ]+)\s+([0-9]+)w/).map{ |url, size| { 'url' => url.strip, 'size' => size.to_i } }.reduce({ 'url' => '', 'size' => 0 }){ |current, new| current = new if new['size'] > current['size'] }['url'] |
// get device pixel ratio in dppx | |
// https://github.com/ryanve/res/blob/master/src/index.js | |
var screen_density = | |
typeof window == 'undefined' | |
? 0 | |
: +window.devicePixelRatio || | |
Math.sqrt(screen.deviceXDPI * screen.deviceYDPI) / 96 || | |
0 | |
// keep only 3 decimals: http://jsfiddle.net/AsRqx/ | |
screen_density = +(Math.round(screen_density + 'e+3') + 'e-3') |
Save My Tabs is a great Firefox extension, because Firefox is great, but crashes a lot (at least mine, with hundreds of tabs).
Unfortunately, Save My Tabs doesn't have any restoration function, so you can copy/paste all URLs yourself, or try this script.
This simple Shell script for Mac OS X will launch Firefox with all URLs present in the backup file you pass as parameter:
./restore-savemytabs.sh opentabs--20160913-1900.txt
ATTENTION, les articles sont supposés être des redirections vers les nouvelles URL des contenus dans cette version du squelette. Modifiez le contenu de <link>
si ce n'est pas le cas.
Déposer les deux squelettes à la racine et appeler la page /?page=disqus-export
/* ******************************************************************** | |
* Some variables | |
* ********************************************************************/ | |
/* ******************************************************************** | |
* Mandatory font face | |
* ********************************************************************/ | |
@font-face { | |
font-family: "SansitaOneRegular"; | |
src: url("font/sansitaone-webfont.woff2") format("woff2"), url("font/sansitaone-webfont.woff") format("woff"); | |
font-weight: normal; |
This pagination liquid code is an extract of the public repository from http://nicolas-hoizey.com/, where you can see it in action.
I hereby claim:
- I am nhoizey on github.
- I am nhoizey (https://keybase.io/nhoizey) on keybase.
- I have a public key whose fingerprint is C944 E2B5 8F97 6F74 A20B B47B 8124 747F 1FA5 3AFE
To claim this, I am signing this object: