This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import random | |
import requests | |
def generate_holders_query(contract: str, token: int) -> str: | |
return f''' query LatestEvents {{ | |
tokens_by_pk(fa2_address: "{contract}", token_id: "{token}") {{ | |
holdings(where: {{amount: {{_gt: "0"}}}}) {{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
import ipfsapi | |
import concurrent.futures | |
api = ipfsapi.Client(host='https://ipfs.infura.io', port=5001) | |
url = "https://better-call.dev/v1/contract/mainnet/KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton/tokens" | |
r = requests.get(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name KG scraper | |
// @version 0.1 | |
// @grant none | |
// ==/UserScript== | |
function contains(selector, text) { | |
var elements = document.querySelectorAll(selector); | |
return Array.prototype.filter.call(elements, function(element){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ASCII_CHARS = [ '#', '?', '%', '.', 'S', '+', '.', '*', ':', ',', '@'] | |
def scale_image(image, new_width=100): | |
"""Resizes an image preserving the aspect ratio. | |
""" | |
(original_width, original_height) = image.size | |
aspect_ratio = original_height/float(original_width) | |
new_height = int(aspect_ratio * new_width) | |
new_image = image.resize((new_width, new_height)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No. | |
Why? | |
Yes. | |
Lol | |
Yes | |
What? | |
Yes. | |
Yes | |
Why? | |
No. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lol | |
No | |
Wow. | |
lol | |
Yep. | |
Yeah. | |
Yes. | |
What? | |
No. | |
Why? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lol | |
Haha | |
LOL | |
How? | |
Why? | |
Wow. | |
Sure. | |
This. | |
Right? | |
Same. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yes | |
Wow. | |
Wow. | |
lol | |
What? | |
Yep. | |
Yeah. | |
Really? | |
Thanks! | |
Thanks! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No. | |
Yes. | |
No. | |
Yes. | |
No. | |
Yes. | |
Yes | |
Yeah | |
Yeah | |
This. |
NewerOlder