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
version: '6.9' | |
services: | |
# Block explorer server | |
electrs: | |
image: ghcr.io/vulpemventures/electrs:latest | |
container_name: electrs | |
entrypoint: | |
- /build/electrs | |
command: | |
- -vvvv |
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 base64 | |
import json | |
from requests_cache import CachedSession | |
from datetime import timedelta | |
from itertools import count | |
item_session = CachedSession( # Cache POST requests to avoid sending the same data twice | |
'items_cache', | |
expire_after=timedelta(days=21), # expire responses expire after 21 days | |
allowable_methods=['GET', 'POST'], |
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
def get_merchants(): | |
# go to directory | |
# grab all categories | |
# go to all categories | |
# grab all pub keys on each page | |
# return a list of pubkeys | |
if os.path.isfile("merchants.txt"): | |
print("Merchants list found, delete it to update.") | |
with open("merchants.txt", "r") as fileobj: |
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
// Copyright 2013-2015, University of Colorado Boulder | |
/* | |
* The front of a bucket (does not include the hole) | |
*/ | |
define( function( require ) { | |
'use strict'; | |
// Includes | |
var Color = require( 'SCENERY/util/Color' ); |