Pedro Gaspar

Awesome Tagline goes here

2 notes &

bundlr:

Dear Internet, please welcome Pedro Gaspar. He has been following Bundlr since the very beginning and we though his code always smelled like strawberries. We made him an offer he could not refuse so he went straight to work, studying hard the inner magic of Ruby on Rails framework. Being a Django Jedi himself, sometimes one would find him nodding his head while saying such things as “Oh Django…”. He will be a RoR Jedi in no time, for sure. 
And of course, he loves cheesecake.

bundlr:

Dear Internet, please welcome Pedro Gaspar. He has been following Bundlr since the very beginning and we though his code always smelled like strawberries. We made him an offer he could not refuse so he went straight to work, studying hard the inner magic of Ruby on Rails framework. Being a Django Jedi himself, sometimes one would find him nodding his head while saying such things as “Oh Django…”. He will be a RoR Jedi in no time, for sure. 

And of course, he loves cheesecake.

(Source: bundlr)

18 notes &

Moodle PDF

Ontem estava a sacar uns PDFs do Moodle e chateei-me por ter de ir procurar o link para o ficheiro à source da página, já que o Moodle não dá a opção de download do PDF.

Como sei que não é só um problema meu, criei o bookmarklet que partilho em baixo. Para o utilizarem arrastem o Link para a barra de Bookmarks do vosso browser e cliquem nele quando estiverem na página de visualização de PDFs do Moodle.

Moodle PDF (arrastem este link)


Para quem estiver interessado no código Javascript:

window.location.href = document.getElementsByTagName('object')[0].data

Procura todos os elementos do HTML com TagName ‘object’, pega no primeiro e usa o seu atributo ‘data’ que tem o URL do PDF original.

KISS.

PS: O Firefox já resolve o problema, porque não apresenta o PDF embedded mas sim um link para o ficheiro logo à partida.

Filed under bookmarklet scripts DEI Moodle javascript