Skip to content

Instantly share code, notes, and snippets.

View simonvc's full-sized avatar
💭
Hiring Go Engineers

Simon Vans-Colina simonvc

💭
Hiring Go Engineers
View GitHub Profile
@simonvc
simonvc / NFTree.sol
Created February 4, 2022 14:52
TreeDAO NFTree contract
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol";
interface TreeToken {
function burnFrom(address, uint) external;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
contract APIConsumer is ChainlinkClient {
using Chainlink for Chainlink.Request;
@simonvc
simonvc / gpt4_service_creator.py
Created April 13, 2023 03:58
This python script will use GPT-4 API to create a encore.dev microservice that may or may not work
import openai
import os
from halo import Halo
# Get the openai token from the OPENAI_TOKEN env variable and store it in openai_token
openai.api_key = os.environ.get('OPENAI_TOKEN')
system_prompt="""You are an expert golang microservice engineer. You will be given a description of a microservice to create and your output should be something we can pipe into bash such that it creates all the files required.
For example, if you wanted to create a directory and two files you would output:
mkdir user-service;
@simonvc
simonvc / gist:803bc783755f8a43423ba837d314e1c5
Created February 27, 2026 03:19
my M1 asahi fedora niri setup
# Airux Setup Notes
Fedora Asahi (M1 MacBook Air) running niri Wayland compositor.
## VoxType (v0.6.2)
Push-to-talk voice-to-text. Hold Right Alt to record, release to transcribe. Text is typed at the cursor via wtype.
- Config: `~/.config/voxtype/config.toml`
- Service: `~/.config/systemd/user/voxtype.service`