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
docker run \ | |
-p 8000:8000 \ | |
-e CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER="chromadb.auth.token.TokenConfigServerAuthCredentialsProvider" \ | |
-e CHROMA_SERVER_AUTH_PROVIDER="chromadb.auth.token.TokenAuthServerProvider" \ | |
-e CHROMA_SERVER_AUTH_CREDENTIALS="new-token" \ # This is your API token once container boots | |
-e CHROMA_SERVER_AUTH_TOKEN_TRANSPORT_HEADER="X_CHROMA_TOKEN" \ | |
-v /your/path/to/persistence/:/chroma/chroma \ # `/your/path/to/persistence` should be folder on host machine you want to write storage too for Chroma persistence between containers. | |
chromadb/chroma |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
/** | |
* @dev These functions deal with verification of Merkle Trees proofs. | |
* | |
* The proofs can be generated using the JavaScript library | |
* https://github.com/miguelmota/merkletreejs[merkletreejs]. | |
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. | |
* |
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
const EXPLORER = { | |
ethereum: { | |
api: 'https://api.etherscan.io/api', | |
key: '<API_KEY_HERE>', // Etherescan API key works for ethereum and rinkeby, will need to do this for each API | |
}, | |
rinkeby: { | |
api: 'https://api-rinkeby.etherscan.io/api', | |
key: '', | |
}, | |
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
<head> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" /> | |
</head> | |
<body class="h-full"> | |
<div class=" | |
flex | |
w-full | |
mt-40 | |
mb-10 |
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
<head> | |
<link | |
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" | |
rel="stylesheet" | |
/> | |
<script | |
src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.6.1/web3.min.js" | |
integrity="sha512-5erpERW8MxcHDF7Xea9eBQPiRtxbse70pFcaHJuOhdEBQeAxGQjUwgJbuBDWve+xP/u5IoJbKjyJk50qCnMD7A==" | |
crossorigin="anonymous" | |
referrerpolicy="no-referrer" |
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
#!/bin/sh | |
# Note(TC): This was downloaded from https://www.npmjs.com/install.sh on Oct 7, 2021 | |
# A word about this shell script: | |
# | |
# It must work everywhere, including on systems that lack | |
# a /bin/bash, map 'sh' to ksh, ksh97, bash, ash, or zsh, | |
# and potentially have either a posix shell or bourne | |
# shell living at /bin/sh. | |
# |
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
<html> | |
<head> | |
<title>Web3 Metamask Login</title> | |
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> | |
</head> | |
<body class="flex w-screen h-screen justify-center items-center"> | |
<div class="flex-col space-y-2 justify-center items-center"> | |
<button id='loginButton' onclick="" class="mx-auto rounded-md p-2 bg-purple-500 text-white"> |
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, json, datetime | |
# This function will grab the data from house/senate stockwatcher and return an array | |
# of dictonary items that represent transactions | |
def fetch_data(): | |
response = requests.get("https://senate-stock-watcher-data.s3-us-west-2.amazonaws.com/aggregate/all_transactions.json") | |
# response = requests.get("https://house-stock-watcher-data.s3-us-west-2.amazonaws.com/data/all_transactions.json") | |
if response.status_code != 200: | |
print("request failed.") |
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
#! /bin/sh | |
# Guess values for system-dependent variables and create Makefiles. | |
# Generated by GNU Autoconf 2.69 for PostgreSQL 9.6.3 (Product Hunt). | |
# | |
# Report bugs to <pgsql-bugs@postgresql.org>. | |
# | |
# | |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
# | |
# |
NewerOlder