This file contains hidden or 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 os | |
import subprocess | |
import argparse | |
import fnmatch | |
from urllib.parse import urlparse | |
EXCLUDE_DIRS = ['node_modules', 'dist', 'build', '.git', 'venv'] | |
SOURCE_CODE_EXTENSIONS = ['.py', '.md','.mdx', '.js', '.java', '.cpp', '.c', '.h', '.cs', '.rb', '.go', '.rs', '.ts', '.php', '.html', '.css'] | |
def clone_repo(url, clone_dir): |
This file contains hidden or 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 Anthropic = require('@anthropic-ai/sdk'); | |
const path = require('path'); | |
const YAML = require('yaml'); | |
const fs = require('fs'); | |
// Initialize Anthropic SDK | |
const anthropic = new Anthropic({ | |
apiKey: process.env.ANTHROPIC_API_KEY, | |
}); |
This file contains hidden or 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
{"name":"Noun 134", "description":"Noun 134 is a member of the Nouns DAO", "image": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjMyMCIgdmlld0JveD0iMCAwIDMyMCAzMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZDVkN2UxIiAvPjxyZWN0IHdpZHRoPSIxNDAiIGhlaWdodD0iMTAiIHg9IjkwIiB5PSIyMTAiIGZpbGw9IiNiODdiMTEiIC8+PHJlY3Qgd2lkdGg9IjE0MCIgaGVpZ2h0PSIxMCIgeD0iOTAiIHk9IjIyMCIgZmlsbD0iI2I4N2IxMSIgLz48cmVjdCB3aWR0aD0iMTQwIiBoZWlnaHQ9IjEwIiB4PSI5MCIgeT0iMjMwIiBmaWxsPSIjYjg3YjExIiAvPjxyZWN0IHdpZHRoPSIxNDAiIGhlaWdodD0iMTAiIHg9IjkwIiB5PSIyNDAiIGZpbGw9IiNiODdiMTEiIC8+PHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjEwIiB4PSI5MCIgeT0iMjUwIiBmaWxsPSIjYjg3YjExIiAvPjxyZWN0IHdpZHRoPSIxMTAiIGhlaWdodD0iMTAiIHg9IjEyMCIgeT0iMjUwIiBmaWxsPSIjYjg3YjExIiAvPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIxMCIgeD0iOTAiIHk9IjI2MCIgZmlsbD0iI2I4N2IxMSIgLz48cmVjdCB3aWR0aD0iMTEwIiBoZWlnaHQ9IjEwIiB4PSIxMjAiIHk9IjI2MCIgZmlsbD0iI2I4N2IxMSIgLz48cmVjdCB3aWR0aD0iMjAiIGhlaWdod |
This file contains hidden or 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
{"name":"Shield Badge", "description":"An unused Shield Badge. Can be used to build 1 Shield.", "image": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHZpZXdCb3g9IjAgMCA1MDAgNjAwIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSIxMTAuNSIgeDI9IjM4OS41IiB5MT0iODIuNjgiIHkyPSI4Mi42OCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2E5YTlhOSIvPjxzdG9wIG9mZnNldD0iLjUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNhOWE5YTkiLz48L2xpbmVhckdyYWRpZW50PjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik0zNzcuMTQgNzYuNUgxMjIuODZhMTIuMzcgMTIuMzcgMCAwIDAtMTIuMzYgMTIuMzZoMjc5YzAtNi44Mi01LjU0LTEyLjM2LTEyLjM2LTEyLjM2eiIvPjxwYXRoIGZpbGw9IiMwMDdGRkYiIGQ9Ik0xMjIuODYgNTIxLjVhMTIuMzcgMTIuMzcgMCAwIDEtMTIuMzYtMTIuMzZWOTAuODZjMC02LjgyIDUuNTQtMTIuMzYgMTIuMzYtMTIuMzZoMjU0LjI4YzYuODIgMCAxMi4zNiA1LjU0IDEyLjM2IDEyLjM2djQxOC4yOGMwIDYuODItNS41NCAxMi4zNi0xMi4zNiAxMi4zNkgxMjIuODZ6Ii8+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0 |
This file contains hidden or 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 signerData = { | |
currency : 'ETH', | |
paymentAddress : PAYMENT_ADDRESS, | |
expectedAmount : '10000000000000000000', | |
data: { description: 'request-signer signed request' }, | |
} | |
export async function signRequest() { | |
// you need get the necessary information to sign | |
// pass in your API_KEY to be able to sign requests |
This file contains hidden or 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
<script type="module"> | |
import SimplePayment from "https://unpkg.com/[email protected]/dist/payment-components.esm.production.js"; | |
async function checkout() { | |
const response = await fetch("/pay", { method: "POST" }); | |
const data = await response.json(); | |
return { signedRequestData: data }; | |
} | |
document.addEventListener("DOMContentLoaded", function() { |
This file contains hidden or 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
pragma solidity ^0.4.17; | |
contract AssetFactory { | |
event NewAsset(string name); | |
struct Asset { | |
string name; | |
} |
This file contains hidden or 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
module.exports = { | |
networks: { | |
development: { | |
host: "localhost", | |
port: 8545, | |
network_id: "*", | |
} | |
} | |
}; |
This file contains hidden or 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 React from "react"; | |
import ReactDOM from "react-dom"; | |
import "./index.css"; | |
import App from "./App"; | |
import registerServiceWorker from "./registerServiceWorker"; | |
// A json dump of our abi | |
import AssetFactory from "./AssetFactory.json" | |
// A way to provide to set the state of Drizzle to the rest of our app |