Skip to content

Instantly share code, notes, and snippets.

View alandooz's full-sized avatar

AlanDooz alandooz

View GitHub Profile
// Run this code in your browser console in https://www.asociarmeaosde.com.ar
let content = {
"update": false,
"nombre": "OSDE",
"groups": [
{
"filled": true
}
],
let books = [...document.querySelector('#g-items').querySelectorAll("li")].map(element => { let el = element.querySelector("[id^='itemName_']"); let author = element.querySelector("[id^='item-byline-']"); return [`"${el.title} by ${author.innerText}"`,el.origin+el.pathname.replace('-/es/','')]}).map(d => d.join()).join('\n');
console.log(books)
Copy and paste
Put "title,url" at the first line
@alandooz
alandooz / Sync forked repository with the original repository.md
Last active October 18, 2019 06:37
Sync forked repository with the original repository
git remote -v

git remote add upstream link-to-original-repository

git remote -v

git fetch upstream

git merge upstream/master
*, *:before, *:after {
box-sizing: border-box;
}