Skip to content

Instantly share code, notes, and snippets.

View davisv7's full-sized avatar
🥕
happy to be here!

Vincent davisv7

🥕
happy to be here!
  • Metaverse®
View GitHub Profile
@davisv7
davisv7 / docker_compose.yml
Last active February 17, 2023 20:45
Electrs/Polar docker compose
version: '6.9'
services:
# Block explorer server
electrs:
image: ghcr.io/vulpemventures/electrs:latest
container_name: electrs
entrypoint:
- /build/electrs
command:
- -vvvv
@davisv7
davisv7 / scrape_stacker_news.py
Created August 16, 2022 15:01
Small script to scrape all posts from stacker.news
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'],
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:
// 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' );