Skip to content

Instantly share code, notes, and snippets.

View makevoid's full-sized avatar

Francesco 'makevoid' Canessa makevoid

View GitHub Profile
@makevoid
makevoid / example-erc721.sol
Last active October 4, 2025 01:31
Sample ERC721 from Openzeppelin - flattened with remix - generated by https://wizard.openzeppelin.com/#erc721 - options: mintable, auto increment ids, uri storage - ownership: ownable
// File: @openzeppelin/contracts@4.3.2/utils/Counters.sol
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
@makevoid
makevoid / generate_image.rb
Last active November 5, 2022 07:48
Use OpenAI Image API to "draw" a ruby in Ruby
require "json"
require "bundler"
Bundler.require :default
# Gemfile:
# ---
# source "https://rubygems.org"
# gem "excon"
OPENAI_API_KEY = ENV["OPENAI_API_KEY"]
@makevoid
makevoid / playground-chatgpt-plugins.md
Last active April 4, 2023 09:57
trying out chatgpt plugins - zapier gmail and wolfram alpha

System prompt: You are an assistant, and I need help with some tasks.

You can use wolfram alpha to answer questions and get information about the world, you can use zapier to send emails.

I need help search for multiple anwers on statistical data, here is the process you need to follow to get the information I need:

PROCESS to get INFORMATION: first get the population of italy from wolfram alpha, second get the number of regions in italy from wolfram alpha, third divide the population of italy by the number of regions in italy by using wolfarm alpha and passing both values on the operation as input

@makevoid
makevoid / try_reflector.py
Last active August 14, 2023 13:57
Trying Langchain Reflector
# Prerequisite
#
# pip3 install git+https://github.com/UmerHA/langchain.git@2316-reflexion
import langchain
from langchain.prompts.prompt import PromptTemplate
from langchain.prompts.base import BasePromptTemplate
from langchain.schema import AgentAction
from langchain.llms import OpenAI
from langchain.agents import load_tools, initialize_agent, AgentType