OIP: TBD Layer: Ord Explorer Title: Allow Same Origin Inscription Page Author: Eloc elocremarc@gmail.com Status: Pending Created: 2023-05-04 License: MIT
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
/** | |
* parsesats.js | |
* | |
* This script is used to parse short sat names from a UTXO output it scrapes the explorer html | |
* | |
* Command usage: | |
* node parsesats.js [output] [name] [host] | |
* | |
* [output]: The UTXO | |
* [name]: The name short names like 4 charcters are pretty common. Must be less than 11 characters. |
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
#!/bin/bash | |
# Check if jq is installed | |
if ! command -v jq &> /dev/null | |
then | |
echo "Error: jq could not be found. Please install it and try again." | |
exit 1 | |
fi | |
# Check if a parameter was provided |
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
/* | |
Project File Structure: | |
/myproject | |
|-- /node_modules | |
|-- /Generation | |
| |-- /Layers | |
| |-- /subDirectory1 | |
| | |-- /compressed | |
| | |-- image1.png |
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 sharp = require('sharp'); | |
const fs = require('fs'); | |
const compressAndSaveImage = async ( | |
inputImagePath, | |
outputImagePath, | |
maxWidth = 576, | |
maxHeight = 576, | |
quality = 10 // quality value for WebP format, from 0 to 100 | |
) => { |
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
{ | |
"limit": 20, | |
"offset": 0, | |
"total": 11, | |
"results": [ | |
{ | |
"id": "9d567e6ef8bd6b13458cc67cc5e8339395a4433e45db4554ff83c88a5df8bae2i0", | |
"number": 11774132, | |
"address": "bc1pddt07pylwztawd7juvz6xxvh2weq8s6x04qyypgah5c8mavkhksqhpk248", | |
"genesis_address": "bc1pddt07pylwztawd7juvz6xxvh2weq8s6x04qyypgah5c8mavkhksqhpk248", |
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
[ | |
{ | |
"id": "61860d439a36956028381989bf1e5006af89e738e55625fe699bb64608fb14d3i0", | |
"meta": { | |
"name": "Cypherpunk Ghost #1", | |
"high_res_img_url": "https://ordinals.com/content/61860d439a36956028381989bf1e5006af89e738e55625fe699bb64608fb14d3i0", | |
"attributes": [ | |
{ | |
"trait_type": "Genesis", | |
"value": "Genesis Ghost" |
- Install Unreal Engine
- Create a new project using the Unreal Engine launcher
- Select C++ as the project type and choose a template
- Open the project in the Unreal Editor
- In the Unreal Editor, go to Edit > Plugins and enable the C# plugin
-
Define the CLI input concisely, specifying the script's purpose in a single file.
-
Generate the script and necessary files for the project (in this case, package.json or dependency files for a JavaScript project) and output them to the CLI.
-
Write the generated files to disk and commit them to version control.
-
Run the script and take any output or user input to generate a new response, addressing any issues or additional information presented by the console log.
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 { Configuration, OpenAIApi } = require('openai'); | |
const configuration = new Configuration({ | |
apiKey: 'YOUR_API_KEY', | |
}); | |
const openAi = new OpenAIApi(configuration); | |
const CreatePrompt = (prompt) => { | |
const exampleResponse = JSON.stringify([ | |
{ |