Skip to content

Instantly share code, notes, and snippets.

View rafarios's full-sized avatar

Rafa Rios rafarios

View GitHub Profile
import time
start = time.time()
for i in range(500):
print(2**i - 1)
print("It takes %s seconds" % (time.time() - start))
@rafarios
rafarios / test3.ipynb
Created February 9, 2021 12:41
test3.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rafarios
rafarios / show-ig-images.js
Created January 7, 2022 10:06 — forked from lindapaiste/show-ig-images.js
Script to view and save full-size images from Instagram
/* Run this script while on a sinle image page on instagram.com. It will pull the full-size images from API and insert them onto the top of the page.
Instagram uses responsive images and does not show the largest size by default. So if you do a simple right-click and save, you aren't getting the highest quality image. With this script you can easily save images in the highest resolution available (1080w).
Full support for multiple-image galleries
No support for videos
*/
//where on the page to insert the images
var position = document.getElementsByTagName('main')[0];
! function() {
"use strict";
function e(e) {
(console.error ? console.error : console.log).call(console, e)
}
function t(e) {
return l.innerHTML = '<a href="' + e.replace(/"/g, "&quot;") + '"></a>', l.childNodes[0].getAttribute("href")
}