Skip to content

Instantly share code, notes, and snippets.

View Jeremie-Chauvel's full-sized avatar

jeremiec Jeremie-Chauvel

View GitHub Profile
@adriencaccia
adriencaccia / .eslintrc.js
Last active August 2, 2021 11:09
Automatic eslint import/order groups
const generateImportOrderRule = require('generateImportOrderRule');
module.exports = {
...
rules: {
...
'import/order': generateImportOrderRule(__dirname),
...
}
...
@Jeremie-Chauvel
Jeremie-Chauvel / README.md
Last active March 31, 2020 08:09
Utilities to export as markdown your funretro board and clean it

Utilities to export as markdown your funretro board and clean it

Those two bookmarklet allows you to export the content of your funretro board as markdown and empty your board.

Bookmarklet version (non-tech friendly)

To use them simply create a new bookmark and copy past the code in the url field. Then you only need to click on the bookmark to execute the script.

export

javascript: !function(){const e=window.location.pathname.split("/")[3],t=e=>{let t,n="";Object.values(e).sort((e,t)=>e.type.id-t.type.id).map(e=>{t!==e.type.id&&(t=e.type.id,n+=`\n###Column ${e.type.id}:\n`),cardContent=e.text+` **+${(e=>e.votes?Object.values(e.votes).reduce((e,t)=>e+t):0)(e)}**`,n+=`- ${cardContent}\n`}),(e=>{const t=document.createElement("textarea"),n=document.getSelection();t.textContent=e,document.body.appendChild(t),n.removeAllRanges(),t.select(),document.execCommand("copy"),n.removeAllRanges(),document.body.removeChild(t)})(n)};(async()=>{t(await(async()=>(await firebase.database().ref(`/mess