JavaScript for imgur gallery generation for PhotoSwipe and Pelican-Elegant

Hi, Using the following code from the Browser console: console.log(""); var images = $$("img"); for (each in images) { console.log(` <a href="${images[each].src}" data-size="4032x3024"> <img src="${images[each].src}" width="403" height="302" alt="Image description" /> </a> `); } console.log("</div>"); It will output a copy-paste ready code for integrating in your blog post and leverage the picture gallery. Warning Review the data-size to make it match the image size as PhotoSwipe requires it to match image and adjust the figcaption entry. ...

February 19, 2020 · 1 min · Pablo Iranzo Gómez

Git commit reordering

While I was working for a presentation for kid’s school at Magnetic field, Aurora, Lunar Phases and Rockets, I added 4 big videos to the presentation (as I was going to use them offline while presenting). I know what git is not the place for big binary files, and even Github proposed to use the LFS backend for that, but as it was just temporary, I went ahead. After that commit, I also wrote two more articles, the one on Lego Speed Champions and the one on Galleria.io and PhotoSwipe, so it became a problem to have big files in between, when my plan was to remove them in the end. ...

February 13, 2020 · 3 min · Pablo Iranzo Gómez

Galleria.io and PhotoSwipe

Introduction I was looking for an alternative for my (this) blog and hold pictures. I’m a lego fan so I wanted to get some pictures uploaded but without bloating the site. In the article Lego Mini Cooper MOC I did add lot of pictures, same for Lego Chinese dinner and Lego Dragon Dance. I was checking and how telegram does handle some links and found that Instagram ’links’ get expanded to list the images inside directly to see if that could help in a task I was helping at Pelican-Elegant theme used at this site for creating a gallery. ...

February 12, 2020 · 3 min · Pablo Iranzo Gómez

Lego Speed Champions 2020 review

Introduction on the new models I recently got the new Lego 2020 sets for the Speed Champions collection, which feature the new ‘8 studs’ wide. Overall impression is that it allows more details on the vehicles (and thus, it gets more pieces, now separated in the instructions in bags 1 and 2). The new baseplate allows enough space to hold two minifigs, but with a caveat, the side closer to the external place of the vehicle requires the minifig to have the arm lowered (not completely because it wouldn’t fit). ...

February 8, 2020 · 3 min · Pablo Iranzo Gómez

API access for Google Calendar and Google Sheet access

Introduction During last days I’ve been playing around with python and API access to Google Sheets. Since some time ago, I already experimented with ICS parsing from python because added https://t.me/redken_bot access to calendar files (.ics) so that it can provide daily reminders on chats about the events happening for the specific date, and had the chance to propose it’s usage to cover a specific use case: Accessing a spreadsheet in Google Sheets and parse its contents and output an ICS file so that the events listed and the dates specific for each one are available in an easier-to-consume approach. ...

November 28, 2019 · 6 min · Pablo Iranzo Gómez
This blog is a participant in the Amazon Associate Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.